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

/* 배민 전용 서체. 큰 제목은 한나Pro, UI/소제목은 주아체를 쓴다. */
@font-face {
    font-family: 'BMHANNAPro';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/BMHANNAPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BMJUA';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --site-header-height: 108px;
    --site-bottombar-height: 78px;

    --bm-mint: #2ac1bc;
    --bm-mint-deep: #17a9a4;
    --bm-mint-pale: #e9faf9;
    --bm-mint-mist: #f6fefd;
    --bm-ink: #121212;
    --bm-ink-soft: #1c1c1c;
    --bm-line: #ececec;
    --bm-gray-bg: #f4f6f5;
    --bm-text: #121212;
    --bm-text-muted: #5c635f;
    --bm-text-faint: #9aa09d;

    --bm-display: 'BMHANNAPro', 'Pretendard', sans-serif;
    --bm-title: 'BMJUA', 'Pretendard', sans-serif;
    --bm-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--site-header-height) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--site-header-height);
    padding-bottom: var(--site-bottombar-height);
    font-family: var(--bm-body);
    font-size: 16px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: var(--bm-text);
    background-color: #ffffff;
    overflow-x: hidden;
    -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 {
        scroll-behavior: auto;
    }

    html.page-loading body,
    html.page-ready body {
        opacity: 1;
        transition: none;
    }
}

/* 스크롤 페이드인. js-reveal 는 head 에서 붙여 첫 페인트부터 숨긴다. */
html.js-reveal :is(
    .bm-hero-visual,
    .bm-stat,
    .bm-head,
    .bm-compare,
    .bm-pain,
    .bm-banner,
    .bm-service,
    .bm-film-copy,
    .bm-film-phone,
    .bm-insight-copy,
    .bm-insight-card,
    .bm-tabs,
    .bm-fee,
    .bm-fee-cta,
    .bm-onestop-card,
    .bm-step,
    .bm-stack-item,
    .bm-manager-visual,
    .bm-split-copy,
    .bm-contact-copy,
    .bm-contact-form,
    .site-faq-heading,
    .faq-accordion__item,
    .site-footer-col,
    .site-footer-nav
) {
    opacity: 0;
    transform: translateY(16px);
}

html.js-reveal :is(
    .bm-hero-visual,
    .bm-stat,
    .bm-head,
    .bm-compare,
    .bm-pain,
    .bm-banner,
    .bm-service,
    .bm-film-copy,
    .bm-film-phone,
    .bm-insight-copy,
    .bm-insight-card,
    .bm-tabs,
    .bm-fee,
    .bm-fee-cta,
    .bm-onestop-card,
    .bm-step,
    .bm-stack-item,
    .bm-manager-visual,
    .bm-split-copy,
    .bm-contact-copy,
    .bm-contact-form,
    .site-faq-heading,
    .faq-accordion__item,
    .site-footer-col,
    .site-footer-nav
).is-aos {
    opacity: 1;
    transform: none;
    transition:
        opacity 500ms var(--ease-out) var(--aos-delay, 0ms),
        transform 500ms var(--ease-out) var(--aos-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal :is(
        .bm-hero-visual,
        .bm-stat,
        .bm-head,
        .bm-compare,
        .bm-pain,
        .bm-banner,
        .bm-service,
        .bm-film-copy,
        .bm-film-phone,
        .bm-insight-copy,
        .bm-insight-card,
        .bm-tabs,
        .bm-fee,
        .bm-fee-cta,
        .bm-onestop-card,
        .bm-step,
        .bm-stack-item,
        .bm-manager-visual,
        .bm-split-copy,
        .bm-contact-copy,
        .bm-contact-form,
        .site-faq-heading,
        .faq-accordion__item,
        .site-footer-col,
        .site-footer-nav
    ) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal :is(
        .bm-hero-visual,
        .bm-stat,
        .bm-head,
        .bm-compare,
        .bm-pain,
        .bm-banner,
        .bm-service,
        .bm-film-copy,
        .bm-film-phone,
        .bm-insight-copy,
        .bm-insight-card,
        .bm-tabs,
        .bm-fee,
        .bm-fee-cta,
        .bm-onestop-card,
        .bm-step,
        .bm-stack-item,
        .bm-manager-visual,
        .bm-split-copy,
        .bm-contact-copy,
        .bm-contact-form,
        .site-faq-heading,
        .faq-accordion__item,
        .site-footer-col,
        .site-footer-nav
    ) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

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

/* 폼 컨트롤은 상속을 받지 않아 그냥 두면 브라우저 기본 UI 폰트로 뜬다.
   배민체를 쓰는 곳 외에는 전부 Pretendard 로 맞춘다. */
button,
input,
optgroup,
select,
textarea {
    font-family: var(--bm-body);
    font-size: inherit;
    line-height: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* —— Header —— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: visible;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bm-line);
    transition: top 0.4s ease;
}

/* backdrop-filter 는 자손 fixed 를 헤더 박스에 가둔다. 메뉴가 열리면 풀어준다. */
body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.is-hidden {
    top: -100%;
}

.site-topbar {
    background-color: var(--bm-ink);
    color: #ffffff;
}

.site-topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 9px 24px;
    font-size: 13px;
    letter-spacing: -0.2px;
    flex-wrap: wrap;
}

.site-topbar-brand {
    font-family: var(--bm-title);
    font-size: 14px;
    color: var(--bm-mint);
}

.site-topbar-divider {
    width: 1px;
    height: 12px;
    background-color: #3a3a3a;
}

.site-topbar-partner {
    opacity: 0.75;
}

.site-topbar-partner em {
    font-style: normal;
    color: var(--bm-mint);
}

.site-topbar-note {
    opacity: 0.55;
}

/* —— Desktop nav (base) —— */
.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
    height: 74px;
    padding-top: 0;
    padding-bottom: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-family: var(--bm-title);
    font-size: 20px;
    white-space: nowrap;
    color: var(--bm-ink);
}

.site-logo-image {
    display: block;
    max-height: 32px;
    max-width: 248px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo-suffix {
    font-family: var(--bm-title);
    font-size: 17px;
    color: var(--bm-ink);
    letter-spacing: -0.5px;
}

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

.nav-menu {
    position: static;
    display: block;
    width: auto;
    margin-left: auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
}

.nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-link--parent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    padding: 10px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-family: var(--bm-title);
    font-size: 16px;
    font-weight: normal;
    color: #333333;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link--parent:hover {
    background-color: var(--bm-mint-pale);
    color: var(--bm-mint-deep);
}

.nav-link.is-active {
    background-color: var(--bm-mint-pale);
    color: var(--bm-mint-deep);
}

.nav-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.15s ease;
}

.nav-item.has-children:hover > .nav-link--parent .nav-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-sublist {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 40;
    display: none;
    min-width: 168px;
    padding: 10px 8px 8px;
    margin-top: 0;
    border: 1px solid var(--bm-line);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
    transform: translateX(-50%);
}

.nav-sublist::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-item.has-children:hover > .nav-sublist,
.nav-item.has-children:focus-within > .nav-sublist {
    display: block;
}

.nav-sublink {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bm-text-muted);
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-sublink:hover {
    background-color: var(--bm-mint-pale);
    color: var(--bm-mint-deep);
}

.site-header-cta {
    flex-shrink: 0;
    background-color: var(--bm-mint);
    color: #ffffff;
    font-family: var(--bm-title);
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 11px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(42, 193, 188, 0.35);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.site-header-cta:hover {
    background-color: var(--bm-ink);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.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;
}

.site-main {
    flex: 1 0 auto;
}

/* —— Footer —— */
.site-footer {
    margin-top: auto;
    background-color: var(--bm-ink);
    color: rgba(255, 255, 255, 0.62);
}

.site-footer-inner {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 56px;
    padding-bottom: 40px;
}

.site-footer-col {
    flex: 1 1 280px;
    min-width: 240px;
}

.site-footer-address {
    display: block;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.site-footer-brand-name {
    font-family: var(--bm-title);
    font-size: 16px;
    color: #ffffff;
}

.site-footer-logo-image {
    display: block;
    max-height: 32px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-footer-sns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.site-footer-sns svg {
    width: 16px;
    height: 16px;
}

.site-footer-sns:hover {
    color: #ffffff;
    border-color: var(--bm-mint);
    background-color: rgba(45, 212, 154, 0.14);
}

.site-footer-meta {
    display: block;
    font-size: 14px;
    line-height: 1.9;
}

.site-footer-meta span {
    display: block;
}

.site-footer-meta a {
    color: rgba(255, 255, 255, 0.62);
}

.site-footer-meta a:hover {
    color: var(--bm-mint);
}

.site-footer-nav {
    font-size: 14px;
    line-height: 1.9;
}

.site-footer-nav-title {
    font-family: var(--bm-title);
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 12px;
}

.site-footer-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.15s ease;
}

.site-footer-nav a:hover {
    color: var(--bm-mint);
}

.site-footer-note {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.42);
}

.site-footer-links {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer-links a:hover {
    color: var(--bm-mint);
}

.site-footer-copy {
    display: block;
    margin-top: 14px;
}

/* —— Floating quick menu (right rail) —— */
.site-quick {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.site-quick a {
    width: 64px;
    padding: 16px 12px;
    background-color: #ffffff;
    color: var(--bm-ink);
    font-family: var(--bm-title);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.site-quick a:hover {
    background-color: var(--bm-ink);
    color: var(--bm-mint);
}

/* —— Fixed bottom CTA bar —— */
.site-bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background-color: var(--bm-ink);
    border-top: 2px solid var(--bm-mint);
}

.site-bottombar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-bottombar-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.site-bottombar-title {
    font-family: var(--bm-title);
    font-size: 17px;
    color: var(--bm-mint);
}

.site-bottombar-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.site-bottombar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-bottombar-tel {
    font-family: var(--bm-display);
    font-size: 22px;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.site-bottombar-btn {
    background-color: var(--bm-mint);
    color: var(--bm-ink);
    font-family: var(--bm-title);
    font-size: 16px;
    padding: 12px 22px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background-color 0.15s ease, filter 0.15s ease;
}

.site-bottombar-btn:hover {
    background-color: #ffffff;
}

/* —— Buttons —— */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--bm-title);
    font-size: 17px;
    padding: 15px 26px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
    background-color: var(--bm-ink);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-primary:focus {
    outline: 2px solid var(--bm-mint);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--bm-ink);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background-color: var(--bm-ink);
    color: #ffffff;
}

.btn-secondary:focus {
    outline: 2px solid var(--bm-mint);
    outline-offset: 2px;
}

/* —— Tablet —— */
@media all and (max-width: 1100px) {
    .nav-link,
    .nav-link--parent {
        font-size: 15px;
        padding: 10px 10px;
    }

    .site-quick {
        display: none;
    }
}

/* —— Mobile —— */
@media all and (max-width: 767px) {
    :root {
        --site-header-height: 88px;
        --site-bottombar-height: 68px;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-topbar-inner {
        gap: 8px;
        padding: 7px 18px;
        font-size: 11.5px;
    }

    .site-topbar-brand {
        font-size: 12px;
    }

    .site-topbar-note {
        display: none;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        height: 56px;
        column-gap: 8px;
    }

    .site-logo {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        justify-self: center;
        gap: 8px;
        font-size: 16px;
    }

    .site-logo-image {
        max-height: 22px;
        max-width: 196px;
    }

    .site-logo-suffix {
        font-size: 14px;
    }

    .site-header-cta {
        grid-column: 3;
        grid-row: 1;
        font-size: 13px;
        padding: 9px 12px;
        border-radius: 9px;
        box-shadow: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: 36px;
        height: 36px;
        padding: 6px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--bm-ink);
        cursor: pointer;
    }

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

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background-color: rgba(17, 24, 39, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1010;
        display: flex;
        flex-direction: column;
        width: min(82vw, 300px);
        height: 100vh;
        height: 100dvh;
        margin-left: 0;
        padding: 0;
        background-color: #ffffff;
        box-shadow: 8px 0 24px rgba(17, 24, 39, 0.12);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        height: 56px;
        padding: 0 16px;
        border-bottom: 1px solid var(--bm-line);
    }

    .nav-menu-title {
        font-family: var(--bm-title);
        font-size: 16px;
        color: var(--bm-ink);
    }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #6b7280;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px;
    }

    .nav-link,
    .nav-link--parent {
        justify-content: space-between;
        width: 100%;
        padding: 12px 12px;
        border-radius: 10px;
        font-size: 16px;
    }

    .nav-caret {
        margin-left: 8px;
        transform: rotate(45deg);
    }

    .nav-item.has-children.is-open > .nav-link--parent .nav-caret {
        transform: rotate(-135deg);
    }

    .nav-item.has-children:hover > .nav-link--parent .nav-caret {
        transform: rotate(45deg);
    }

    .nav-item.has-children.is-open:hover > .nav-link--parent .nav-caret {
        transform: rotate(-135deg);
    }

    .nav-sublist {
        position: static;
        top: auto;
        left: auto;
        display: none;
        min-width: 0;
        padding: 4px 0 8px 12px;
        border: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
        transform: none;
    }

    .nav-sublist::before {
        display: none;
    }

    .nav-item.has-children:hover > .nav-sublist,
    .nav-item.has-children:focus-within > .nav-sublist {
        display: none;
    }

    .nav-item.has-children.is-open > .nav-sublist {
        display: block;
    }

    .nav-sublink {
        white-space: normal;
    }

    .site-footer-inner {
        gap: 28px;
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .site-bottombar-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: center;
    }

    .site-bottombar-copy {
        display: none;
    }

    .site-bottombar-actions {
        width: 100%;
        justify-content: center;
    }

    .site-bottombar-tel {
        font-size: 18px;
    }

    .site-bottombar-btn {
        font-size: 15px;
        padding: 11px 16px;
    }
}
