/* ============================================================
   ATOKETO 공개 랜딩/메뉴 — 모바일 우선.
   핵심: 데스크탑에서도 모바일 비율 그대로 좁게(폭 고정) 보이게 한다.
   .landing-shell 이 max-width 로 폭을 잠그고 화면 중앙에 세운다.
   ============================================================ */

:root {
    --brand: #53b674;
    --brand-dark: #3f9e60;
    --ink: #1f2937;
    --ink-soft: #6b7280;
    --line: #eceff1;
    --bg: #f4f6f5;
    --shell-w: 440px;   /* 모바일 폭 고정 — 데스크탑에서도 이 폭 유지 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo',
        'Malgun Gothic', Roboto, sans-serif;
    color: var(--ink);
    background: #dfe3e1;   /* 셸 바깥 여백(데스크탑) */
    -webkit-font-smoothing: antialiased;
}

/* 모바일 폭으로 잠근 중앙 컬럼 */
.landing-shell {
    width: 100%;
    max-width: var(--shell-w);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------------- 상단 헤더 ---------------- */
.l-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    background: #fff; border-bottom: 1px solid var(--line);
}
.l-header .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.l-header .brand i { color: var(--brand); }
.l-header .nav { display: flex; gap: 14px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.l-header .nav a.active { color: var(--brand); }

/* ---------------- 히어로 ---------------- */
.hero {
    position: relative;
    padding: 56px 22px 64px;
    min-height: 340px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    background-image: url('../images/landing/hero-bg.jpg');
    background-size: cover; background-position: center 65%; background-repeat: no-repeat;
    color: var(--ink); text-align: center; overflow: hidden;
}
/* 사진 위 텍스트 가독성용 은은한 스크림 — 중앙(밝은 부분) 위주로 옅게, 가장자리는 원본 유지 */
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at center 38%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 55%, rgba(255,255,255,0) 78%);
}
.hero .eyebrow, .hero h1, .hero p, .hero .cta { position: relative; z-index: 1; }
.hero .eyebrow { font-size: .8rem; letter-spacing: .18em; color: var(--brand-dark); font-weight: 700; margin-bottom: 12px; }
.hero h1 { font-size: 1.9rem; line-height: 1.3; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 16px rgba(255,255,255,0.6); }
.hero p { font-size: .95rem; line-height: 1.6; color: #374151; margin-bottom: 26px; text-shadow: 0 1px 10px rgba(255,255,255,0.5); }
.hero .cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand); color: #fff;
    padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem;
    box-shadow: 0 8px 20px rgba(63, 158, 96, 0.35);
}
.hero .cta:active { transform: translateY(1px); }

/* ---------------- 섹션 공통 ---------------- */
.section { padding: 34px 18px; }
.section-head { margin-bottom: 18px; }
.section-head .tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.section-head h2 { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.section-head p { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

/* 대표 메뉴 프리뷰 그리드 */
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preview-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.preview-card .thumb { aspect-ratio: 1 / 1; background: #f0f2f1; }
.preview-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-card .meta { padding: 10px 12px 14px; }
.preview-card .meta .name { font-weight: 800; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.preview-card .meta .name-en { margin-top: 4px; font-size: .76rem; color: var(--ink-soft); font-weight: 600; }

.center-link { text-align: center; margin-top: 24px; }
.center-link a {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--brand); color: var(--brand-dark);
    padding: 12px 28px; border-radius: 999px; font-weight: 800; font-size: .95rem;
}

/* 플래시 메시지 */
.flash-wrap { padding: 12px 16px 0; }
.flash { padding: 12px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.flash-success { background: #e6f6ec; color: #1e7a43; border: 1px solid #b7e4c7; }
.flash-danger { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }
.flash-info { background: #eaf2fb; color: #1c5aa8; border: 1px solid #c2d8f0; }

/* 정보 카드(소개/위치/단체주문) */
.info-block { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05); }
.info-block + .info-block { margin-top: 14px; }
.info-block h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.info-block h3 i { color: var(--brand); }
.info-block p { font-size: .9rem; color: #4b5563; line-height: 1.7; }
.info-block .rows { margin-top: 10px; }
.info-block .rows .row-line { display: flex; gap: 10px; padding: 6px 0; font-size: .9rem; border-top: 1px solid var(--line); }
.info-block .rows .row-line:first-child { border-top: none; }
.info-block .rows .k { flex: 0 0 68px; color: var(--ink-soft); font-weight: 600; }
.info-block .rows .v { color: var(--ink); }
.info-block .btn-line { margin-top: 14px; }
.info-block .btn-line a {
    display: block; text-align: center; background: var(--brand); color: #fff;
    padding: 12px; border-radius: 12px; font-weight: 800; font-size: .95rem;
}

/* 입주기업 식권 시스템 — 혜택 리스트 & 상담 폼 */
.perk-list { list-style: none; margin: 14px 0 6px; }
.perk-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: #374151; line-height: 1.55; padding: 5px 0; }
.perk-list li i { color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.inquiry-cta-lead { margin-top: 12px; font-size: .88rem; color: #4b5563; line-height: 1.65; }

.inquiry-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.inquiry-form .req { color: #ff5a5a; }
.inquiry-form input {
    border: 1.5px solid #dfe4e8; border-radius: 10px; padding: 12px 13px;
    font-size: .95rem; font-weight: 500; color: var(--ink); background: #fbfcfc;
}
.inquiry-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.inquiry-form button {
    margin-top: 4px; background: var(--brand); color: #fff; border: none;
    padding: 14px; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.inquiry-form button:active { transform: translateY(1px); background: var(--brand-dark); }

/* 상담 신청 모달 */
.inquiry-modal { display: none; position: fixed; inset: 0; z-index: 100; }
.inquiry-modal.open { display: block; }
.inquiry-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.inquiry-dialog {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: var(--shell-w);
    background: #fff; border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    max-height: 92vh; overflow-y: auto;
    animation: sheet-up .25s ease;
}
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.inquiry-close {
    position: absolute; top: 12px; right: 14px; border: none; background: none;
    font-size: 30px; line-height: 1; color: #9aa3ab; cursor: pointer; padding: 4px 8px;
}
.inquiry-dialog h3 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.inquiry-dialog h3 i { color: var(--brand); }
.inquiry-modal-lead { margin-top: 8px; font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }

/* 데스크탑(넓은 화면)에서는 시트가 아니라 가운데 카드로 */
@media (min-width: 500px) {
    .inquiry-dialog {
        bottom: auto; top: 50%; transform: translate(-50%, -50%);
        border-radius: 18px; max-height: 90vh;
        animation: card-in .2s ease;
    }
    @keyframes card-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}

/* ---------------- 푸터 ---------------- */
.l-footer { background: #22282b; color: #cfd6d3; padding: 30px 20px 40px; text-align: center; }
.l-footer .logo { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.l-footer .socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.l-footer .socials a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.05rem;
}
.l-footer small { display: block; font-size: .78rem; line-height: 1.7; opacity: .75; }

/* ============================================================
   메뉴 페이지
   ============================================================ */
.menu-hero {
    padding: 28px 20px; background: #fff; border-bottom: 1px solid var(--line); text-align: center;
}
.menu-hero .eyebrow { font-size: .78rem; letter-spacing: .18em; color: var(--brand); font-weight: 700; }
.menu-hero h1 { font-size: 1.7rem; font-weight: 800; margin: 6px 0 8px; }
.menu-hero p { font-size: .9rem; color: var(--ink-soft); }

.campaign-banner {
    margin: 0; padding: 14px 20px;
    background: linear-gradient(120deg, #ff8a3d, #ff6a3d); color: #fff;
    font-weight: 700; font-size: .92rem; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* 카테고리 칩 필터 — 가로 스크롤, 상단 고정 */
.chip-bar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.chip-bar::-webkit-scrollbar { display: none; }
.chip-row { display: flex; gap: 8px; padding: 12px 16px; width: max-content; }
.chip {
    white-space: nowrap; border: 1.5px solid var(--brand); color: var(--brand-dark);
    background: #fff; padding: 7px 16px; border-radius: 999px;
    font-size: .85rem; font-weight: 700; cursor: pointer;
}
.chip.active { background: var(--brand); color: #fff; }

/* 카테고리 섹션 + 2열 카드 */
.menu-body { padding: 22px 16px 40px; }
.cat-section { margin-bottom: 30px; scroll-margin-top: 60px; }
.cat-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.cat-desc { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.new-badge { background: #ff5a5a; color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.menu-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.menu-card:active { transform: scale(0.985); }
.menu-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.menu-card .thumb { position: relative; aspect-ratio: 1 / 1; background: #f0f2f1; }
.menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .meta { padding: 11px 12px 14px; }
.menu-card .meta .name { font-weight: 800; font-size: .95rem; line-height: 1.35; color: var(--ink);
    padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-card .meta .name-en { margin-top: 8px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.menu-card .meta .desc {
    margin-top: 7px; font-size: .8rem; color: #64748b; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.empty-state { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.empty-state i { font-size: 2rem; color: #cfd6d3; margin-bottom: 12px; display: block; }

.back-to-order {
    position: sticky; bottom: 16px; margin: 20px 16px 0; z-index: 30;
    display: block; text-align: center; background: var(--ink); color: #fff;
    padding: 14px; border-radius: 14px; font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 메뉴 상세 모달 */
.detail-modal { display: none; position: fixed; inset: 0; z-index: 120; }
.detail-modal.open { display: block; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.detail-dialog {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 40px); max-width: 380px;
    background: #fff; border-radius: 18px; padding: 22px 20px 24px;
    max-height: 88vh; overflow-y: auto; animation: detail-in .2s ease;
}
@keyframes detail-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.detail-close {
    position: absolute; top: 12px; right: 14px; border: none; background: none;
    font-size: 28px; line-height: 1; color: #9aa3ab; cursor: pointer; padding: 2px 6px;
}
.detail-thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #f0f2f1; margin-bottom: 16px; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-dialog h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); padding-right: 28px; }
.detail-en { margin-top: 5px; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.detail-divider { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.detail-desc { font-size: .95rem; color: #374151; line-height: 1.75; white-space: pre-line; }
