@charset "utf-8";

/* =================================================================
   doorweb_modern  Canvas   
   /canvas/      .
   doorweb_modern  //  .
   ================================================================= */

:root {
    /*    doorweb_modern 1:1  */
    --ink:         #1a2332;
    --ink-soft:    #4a5568;
    --ink-muted:   #8592a3;
    --line:        #e3e8ef;
    --line-soft:   #eef2f6;
    --paper:       #ffffff;
    --canvas-bg:   #f7f9fc;   /* doorweb_modern --canvas.   .sim-container     */
    --mist:        #edf2f7;

    --sky-50:      #f0f6fc;
    --sky-100:     #dbeaf8;
    --sky-200:     #b8d4ed;
    --sky-400:     #5a8ab8;
    --sky-600:     #3a6d9a;

    --accent:      #607d8b;
    --accent-soft: #eceff1;
    --accent-dark: #455a64;

    --shadow-sm:   0 1px 3px rgba(26,35,50,0.04), 0 1px 2px rgba(26,35,50,0.03);
    --shadow-md:   0 4px 16px rgba(26,35,50,0.06), 0 2px 4px rgba(26,35,50,0.04);
    --shadow-lg:   0 16px 48px rgba(26,35,50,0.08), 0 4px 12px rgba(26,35,50,0.05);

    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'Fraunces', 'Pretendard', serif;

    --container: 1280px;
    --radius-sm: 6px;
    --radius:    12px;
    --radius-lg: 20px;

    --header-h: 80px;
}

/*     */
.dw-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transition: padding 0.3s ease, background 0.3s ease;
    font-family: var(--font-body);
    color: var(--ink);
}
.site-header.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.92);
}
.site-header * { box-sizing: border-box; }

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

/*  */
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-header .brand-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--sky-200), var(--accent) 80%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.site-header .brand-mark::after {
    content: '';
    position: absolute;
    top: 15%; left: 20%;
    width: 30%; height: 30%;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    filter: blur(4px);
}
.site-header .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-header .brand-text .ko {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.site-header .brand-text .en {
    font-family: var(--font-display);
    font-size: 11px;
    font-style: italic;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}

/* GNB */
.site-header .gnb { flex: 1; }
.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.site-header .nav > li {
    position: relative;
    white-space: nowrap;
}
.site-header .nav > li > a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.2s ease;
    text-decoration: none;
}
.site-header .nav > li:hover > a,
.site-header .nav > li.active > a {
    color: var(--ink);
    background: var(--accent-soft);
}
.site-header .nav .caret {
    font-size: 9px;
    margin-left: 4px;
    opacity: 0.6;
}

/*  */
.site-header .submenu, .site-header .submenu-3 {
    position: absolute;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 5;
    list-style: none;
    margin: 0;
}
.site-header .submenu { top: calc(100% + 4px); left: 0; }
.site-header .submenu-3 { top: -9px; left: calc(100% + 4px); }
.site-header .nav > li:hover > .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-header .submenu li:hover > .submenu-3 {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-header .submenu a, .site-header .submenu-3 a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ink-soft);
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
}
.site-header .submenu a:hover, .site-header .submenu-3 a:hover,
.site-header .submenu a.active, .site-header .submenu-3 a.active {
    color: var(--ink);
    background: var(--sky-50);
}

/*   */
.site-header .header-utils {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.site-header .icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: all 0.2s ease;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.site-header .icon-btn:hover {
    background: var(--accent-soft);
    color: var(--ink);
}
.site-header .mobile-menu-toggle { display: none; }

/*   */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 0;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 32px rgba(26,35,50,0.08);
    color: var(--ink);
    isolation: isolate;
}
.search-overlay.open { transform: translateY(0); }
.search-overlay * { box-sizing: border-box; }
.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.search-form input[type="text"] {
    flex: 1;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.02em;
    border: 0;
    border-bottom: 2px solid var(--line);
    padding: 16px 0;
    background: transparent;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease;
}
.search-form input[type="text"]:focus { border-bottom-color: var(--accent); }
.search-form input[type="text"]::placeholder { color: var(--ink-muted); }
.search-form button[type="submit"] {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    transition: all 0.2s ease;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.search-form button[type="submit"]:hover { background: var(--accent-dark); }
.search-close {
    position: absolute;
    right: 0; top: -60px;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--ink-soft);
    background: var(--mist);
    transition: all 0.2s ease;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.search-close:hover { background: var(--line); color: var(--ink); }

/* =================================================================
      body   
          
   ================================================================= */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;                       /*     */
    background: rgba(26, 35, 50, 0.45);  /*    */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    color: var(--ink);
    isolation: isolate;
}
.mobile-menu * { box-sizing: border-box; }
.mobile-menu.open {
    visibility: visible;
    opacity: 1;
}

/*    */
.mobile-menu-inner {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: var(--paper);
    box-shadow: -16px 0 48px rgba(26,35,50,0.18);
    padding: 80px 28px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}

/*   (X) */
.mobile-menu-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--ink-soft);
    border: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}
.mobile-menu-close:hover {
    background: var(--line);
    color: var(--ink);
}

.mobile-nav {
    padding: 0;
    list-style: none;
    margin: 0;
}
.mobile-nav .m-nav-item {
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.mobile-nav .m-first {
    display: block;
    padding: 18px 50px 18px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.mobile-nav .m-nav-item.active > .m-first {
    color: var(--accent-dark);
}
.mobile-menu .m-toggle {
    position: absolute;
    right: 0; top: 12px;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--ink-muted);
    transition: all 0.25s ease;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.mobile-menu .m-toggle.open {
    transform: rotate(45deg);
    color: var(--accent-dark);
}
.mobile-menu .m-submenu, .mobile-menu .m-submenu-3 {
    display: none;
    padding: 0 0 16px 16px;
    list-style: none;
    margin: 0;
}
.mobile-menu .m-submenu.open { display: block; }
.mobile-menu .m-submenu > li > a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
}
.mobile-menu .m-submenu > li > a:hover {
    color: var(--accent-dark);
}
.mobile-menu .m-submenu-3 > li > a {
    padding: 8px 0 8px 12px;
    font-size: 13px;
    color: var(--ink-muted);
    position: relative;
    text-decoration: none;
}
.mobile-menu .m-submenu-3 > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    opacity: 0.5;
}

/*        */
body.dw-overlay-open {
    overflow: hidden;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 40px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
}
.site-footer * { box-sizing: border-box; }
.site-footer a { text-decoration: none; }

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.site-footer .footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-footer .footer-brand .brand-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--sky-200), var(--accent) 80%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.site-footer .footer-brand .brand-mark::after {
    content: '';
    position: absolute;
    top: 15%; left: 20%;
    width: 30%; height: 30%;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    filter: blur(4px);
}
.site-footer .footer-brand .brand-text {
    display: flex; flex-direction: column; line-height: 1.1;
}
.site-footer .footer-brand .brand-text .ko {
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.site-footer .footer-brand .brand-text .en {
    font-family: var(--font-display);
    font-size: 11px;
    font-style: italic;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}
.site-footer .footer-brand p {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.7;
    max-width: 380px;
    color: rgba(255,255,255,0.7);
}
.site-footer .footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 0 0 18px;
    letter-spacing: 0.02em;
}
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col ul li { margin-bottom: 10px; }
.site-footer .footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}
.site-footer .footer-col ul a:hover { color: white; }

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 16px;
}
.site-footer .footer-bottom .copyright { max-width: 600px; }

/* =================================================================
   SCROLL UP
   ================================================================= */
#scrollUp {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 50;
    transition: all 0.25s ease;
    border: 0;
    cursor: pointer;
    font-size: 16px;
}
#scrollUp.show { display: flex; }
#scrollUp:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* =================================================================
     (  )
   ================================================================= */
body.dw-page { padding-top: var(--header-h); }

/* =================================================================
   
   ================================================================= */
@media (max-width: 1060px) {
    .site-header .nav { display: none; }
    .site-header .mobile-menu-toggle { display: inline-flex; }
    .site-header .icon-btn.act_search { display: none; }
    .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .dw-container { padding: 0 20px; }
    .site-header { padding: 14px 0; }
    .site-header .brand-text .en { display: none; }
    .site-header .brand-text .ko { font-size: 15px; }
    .site-header .brand-mark { width: 32px; height: 32px; }
    .site-footer .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
    .search-form input[type="text"] { font-size: 24px; }
    .search-overlay { padding: 90px 0; }
    .search-close { top: 24px; right: 20px; }
}
