@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ==========================================================================
   HIGHEND — 공통 레이아웃 (데스크탑 우선, px)
   디자인 토큰은 피그마 Color-Styles 를 그대로 옮겼다.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --c-primary: #4f311e;   /* primary  */
    --c-sub1: #d15e31;      /* sub-1 (포인트 오렌지) */
    --c-sub2: #944711;      /* sub-2 (브라운 라벨) */
    --c-sub3: #f5e1b1;      /* sub-3 (밝은 골드) */
    --c-sub4: #fff0cc;      /* sub-4 (크림) */
    --c-bg1: #fff9ed;       /* bg-1  (아이보리 배경) */
    --c-n9: #0a0a0a;
    --c-n8: #1e1e1e;
    --c-n7: #333333;
    --c-n5: #737373;
    --c-n4: #999999;
    --c-n3: #cccccc;
    --c-n2: #ebebeb;
    --c-n1: #ffffff;

    --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-en: 'Montserrat', 'Pretendard', sans-serif;
    --font-quote: 'Abhaya Libre', Georgia, serif;

    --site-header-height: 80px;
    --container: 1300px;
    --gutter: 16px;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --reveal-duration: 750ms;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-kr);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-primary);
    background-color: var(--c-n1);
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

/* Page enter fade — hide until images (or timeout) then reveal */
html.page-loading body {
    opacity: 0;
}

html.page-ready body {
    opacity: 1;
    transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    html.page-loading body,
    html.page-ready body {
        opacity: 1;
        transition: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— 공통 버튼 —— */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 36px;
    border: 0;
    border-radius: 99px;
    background-color: var(--c-sub1);
    color: var(--c-n1);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
    background-color: #b94f27;
}

.btn-pill:focus-visible {
    outline: 3px solid var(--c-sub3);
    outline-offset: 2px;
}

.btn-pill--sm {
    height: 44px;
    padding: 0 16px;
    font-size: 17px;
    font-weight: 700;
}

.btn-pill--dark {
    background-color: var(--c-primary);
}

.btn-pill--dark:hover {
    background-color: #3a2416;
}

/* ==========================================================================
   상단 띠 배너
   ========================================================================== */
.top-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    background-color: var(--c-primary);
    color: var(--c-n1);
}

.top-banner.is-hidden {
    display: none;
}

.top-banner-text {
    padding: 0 48px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--c-n1);
    text-align: center;
}

.top-banner-close {
    position: absolute;
    top: 50%;
    right: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eeeeee;
    opacity: 0.5;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.top-banner-close:hover {
    opacity: 1;
}

.top-banner-close svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   헤더 (sticky)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--site-header-height);
    background-color: var(--c-n1);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(79, 49, 30, 0.08);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: none;
    padding: 0 50px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-image {
    display: block;
    width: 171px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.nav-list {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 50px;
    transform: translate(-50%, -50%);
}

.nav-link {
    display: block;
    padding: 4px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-n9);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--c-sub1);
}

.nav-item--lang .nav-link {
    font-size: 15px;
    color: var(--c-n5);
}

.site-nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-nav-phone {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-n9);
    white-space: nowrap;
}

.nav-toggle,
.nav-menu {
    display: none;
}

/* ==========================================================================
   푸터
   ========================================================================== */
.site-main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--c-n2);
    background-color: var(--c-n1);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.site-footer-logo {
    order: 2;
    flex-shrink: 0;
}

.site-footer-logo img {
    display: block;
    width: 171px;
    height: 36px;
    object-fit: contain;
}

.site-footer-info {
    order: 1;
    min-width: 0;
}

.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--c-n9);
}

.site-footer-meta > span {
    display: inline-flex;
    align-items: center;
}

.site-footer-meta > span + span::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 8px;
    margin-right: 8px;
    background-color: var(--c-n2);
}

.site-footer-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-meta a:hover {
    color: var(--c-sub1);
}

.site-footer-links {
    gap: 8px;
}

.site-footer-copy {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--c-n9);
}

.site-footer-copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-copy a:hover {
    color: var(--c-sub1);
}

/* ==========================================================================
   전화문의 플로팅 버튼
   ========================================================================== */
.quick-call {
    position: fixed;
    left: 50px;
    bottom: 50px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding-right: 20px;
    border-radius: 99px;
    background-color: var(--c-n1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* 푸터에 닿으면 app.js 가 붙인다 */
.quick-call.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.quick-call-btn {
    display: inline-flex;
    align-items: center;
    height: 60px;
    padding: 0 24px;
    border-radius: 99px;
    background-color: var(--c-sub1);
    color: var(--c-n1);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.quick-call-btn:hover {
    background-color: #b94f27;
}

.quick-call-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-n9);
    white-space: nowrap;
}

.quick-call-number svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ==========================================================================
   태블릿 (≤1279)
   ========================================================================== */
@media all and (max-width: 1279px) {
    .site-nav {
        padding: 0 24px;
    }

    .site-logo-image {
        width: 140px;
        height: 30px;
    }

    .nav-list {
        gap: 28px;
    }

    .nav-link,
    .site-nav-phone {
        font-size: 17px;
    }

    .btn-pill--sm {
        height: 40px;
        font-size: 15px;
    }
}

/* ==========================================================================
   모바일 · 작은 태블릿 (≤1023) — 풀스크린 메뉴
   ========================================================================== */
@media all and (max-width: 1023px) {
    .nav-list,
    .site-nav-phone {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin-left: 4px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #121212;
        cursor: pointer;
    }

    .nav-toggle-icon {
        width: 24px;
        height: 24px;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 200;
        display: flex;
        flex-direction: column;
        background-color: var(--c-n1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu-top {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        height: 60px;
        padding: 0 15px;
    }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #121212;
        cursor: pointer;
    }

    .nav-close svg {
        width: 26px;
        height: 26px;
    }

    .nav-menu-list {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 16px 60px;
        overflow-y: auto;
    }

    .nav-menu-list > li {
        width: 100%;
        max-width: 343px;
    }

    .nav-menu-link {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 58px;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.4;
        color: var(--c-n8);
        transition: color 0.15s ease;
    }

    .nav-menu-link:hover,
    .nav-menu-link:active {
        color: var(--c-sub1);
    }

    .nav-menu-langs {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 24px;
    }

    .nav-menu-lang {
        font-size: 15px;
        color: var(--c-n5);
    }

    .nav-menu-lang.is-active {
        color: var(--c-n8);
        font-weight: 600;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* ==========================================================================
   모바일 (≤767)
   ========================================================================== */
@media all and (max-width: 767px) {
    :root {
        --site-header-height: 70px;
    }

    .top-banner {
        height: 30px;
    }

    .top-banner-text {
        padding: 0 40px;
        font-size: 12px;
    }

    .top-banner-close {
        right: 8px;
    }

    .site-nav {
        padding: 0 16px;
    }

    .site-logo-image {
        width: 133px;
        height: 28px;
    }

    .site-nav-cta {
        gap: 8px;
    }

    .btn-pill--sm {
        height: 32px;
        padding: 0 10px;
        font-size: 14px;
    }

    .nav-toggle {
        width: 32px;
        height: 32px;
        margin-left: 2px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .site-footer-logo {
        order: 1;
    }

    .site-footer-logo img {
        width: 105px;
        height: 22px;
    }

    .site-footer-info {
        order: 2;
    }

    .site-footer-meta {
        gap: 2px 6px;
        font-size: 11px;
        color: var(--c-n5);
    }

    .site-footer-meta > span + span::before {
        margin-right: 6px;
    }

    .site-footer-copy {
        margin-top: 24px;
        font-size: 11px;
        color: var(--c-n5);
    }

    .quick-call {
        left: 16px;
        bottom: 16px;
        gap: 8px;
        height: 48px;
        padding-right: 14px;
    }

    .quick-call-btn {
        height: 48px;
        padding: 0 16px;
        font-size: 16px;
    }

    .quick-call-number {
        gap: 4px;
        font-size: 15px;
    }

    .quick-call-number svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   스크롤 리빌 (data-aos) — app.js 의 IntersectionObserver 가 .is-inview 를 붙인다.
   JS 가 살아 있을 때(html.aos-ready)만 숨기므로, JS 없이도 내용은 보인다.
   ========================================================================== */
html.aos-ready [data-aos] {
    opacity: 0;
    transition:
        opacity var(--reveal-duration) var(--ease-out),
        transform var(--reveal-duration) var(--ease-out);
    transition-delay: var(--aos-delay, 0ms);
}

html.aos-ready [data-aos="fade-up"]    { transform: translate3d(0, 36px, 0); }
html.aos-ready [data-aos="fade-down"]  { transform: translate3d(0, -36px, 0); }
html.aos-ready [data-aos="fade-left"]  { transform: translate3d(48px, 0, 0); }
html.aos-ready [data-aos="fade-right"] { transform: translate3d(-48px, 0, 0); }
html.aos-ready [data-aos="zoom-in"]    { transform: scale(0.94); }
html.aos-ready [data-aos="fade"]       { transform: none; }

html.aos-ready [data-aos].is-inview {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.aos-ready [data-aos] {
        transform: none !important;
        transition-duration: 300ms;
        transition-delay: 0ms !important;
    }
}
