/* ==========================================================================
   멍냥스토어 랜딩 — 웜 & 프렌들리
   팔레트: 크림 배경 / 네이비(로고 라인) / 주황(로고 고양이) / 카카오 옐로
   타이포: Jua(디스플레이) + Pretendard(본문)
   ========================================================================== */

:root {
    --cream: #FAF4E8;
    --cream-soft: #F3EAD7;
    --surface: #FFFFFF;
    --navy: #1B3C73;
    --navy-deep: #142C56;
    --night: #0F2140;
    --body-color: #4C5B76;
    --orange: #EE8A3F;
    --orange-deep: #D9741F;
    --orange-soft: #FBE3CB;
    --kakao: #FEE500;
    --line: #EADFC9;
    --font-display: 'Jua', 'Pretendard Variable', Pretendard, sans-serif;
    --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --radius: 20px;
    --header-h: 68px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--body-color);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
ul, ol { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.25;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.eyebrow {
    font-family: var(--font-display);
    color: var(--orange);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

section > .section-inner > h2 {
    font-size: clamp(1.7rem, 4.2vw, 2.4rem);
    margin-bottom: 34px;
}

/* --------------------------------- 버튼 --------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 60, 115, 0.18);
}

.btn-kakao { background: var(--kakao); color: #191919; }
.btn-kakao img { border-radius: 50%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-lg { padding: 17px 30px; font-size: 1.1rem; }
.btn-header { padding: 10px 18px; font-size: 0.95rem; }

/* --------------------------------- 헤더 --------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 244, 232, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 2px 18px rgba(27, 60, 115, 0.1); }

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
}

.site-nav { display: none; gap: 26px; }

.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--navy);
    opacity: 0.82;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { opacity: 1; color: var(--orange-deep); }

/* -------------------------------- 히어로 -------------------------------- */

.hero { padding: 56px 0 72px; }

.hero-inner {
    display: grid;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    font-family: var(--font-display);
    background: var(--orange);
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 3.7rem);
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero-sub {
    font-size: clamp(1.02rem, 2.4vw, 1.2rem);
    margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { display: flex; justify-content: center; }

.hero-house {
    background: var(--surface);
    clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%);
    padding: 72px 44px 36px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ------------------------------ 특징 3카드 ------------------------------ */

.features { padding: 72px 0; }

.card-grid {
    display: grid;
    gap: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(27, 60, 115, 0.12);
}

.card-icon, .product-icon {
    width: 58px;
    height: 58px;
    background: var(--orange-soft);
    clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    margin-bottom: 16px;
}

.card-icon svg, .product-icon svg {
    width: 30px;
    height: 30px;
    margin-top: 6px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ------------------------------ 심야 밴드 ------------------------------ */

.night {
    background:
        radial-gradient(1.5px 1.5px at 12% 28%, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 30% 62%, rgba(255,255,255,0.45) 50%, transparent 51%),
        radial-gradient(2px 2px at 55% 20%, rgba(255,255,255,0.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 72% 48%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(2px 2px at 88% 30%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 44% 80%, rgba(255,255,255,0.35) 50%, transparent 51%),
        linear-gradient(180deg, var(--navy-deep) 0%, var(--night) 100%);
    padding: 76px 0;
}

.night-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.night-house svg { width: 130px; height: auto; }
.night-house .nh-wall { fill: none; stroke: rgba(250, 244, 232, 0.85); stroke-width: 3.5; stroke-linejoin: round; }
.night-house .nh-window { fill: #FFD98A; stroke: none; filter: drop-shadow(0 0 14px rgba(255, 217, 138, 0.8)); }
.night-house .nh-glass { fill: none; stroke: var(--night); stroke-width: 2.5; }

.night-eyebrow {
    font-family: var(--font-display);
    color: var(--orange);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.night h2 {
    color: var(--cream);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    margin-bottom: 18px;
}

/* flex를 쓰면 '지금 시각'·시계·'영업 중'이 각각 독립 박스로 가운데 정렬돼
   글자 크기가 다를 때 밑선(baseline)이 어긋난다. 인라인 흐름에 두면 자동으로 밑선을 공유한다 */
.night-clock {
    display: inline-block;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--cream);
    border-radius: 999px;
    padding: 14px 30px;
    font-size: 1.12rem;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* 시:분:초가 이 구간의 주인공 — 폰트를 키우고 오전/오후는 상대적으로 작게 둔다.
   clamp 하한이 없으면 375px에서 알약이 화면 밖으로 삐져나간다 */
.night-clock strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.night-clock strong .ampm {
    font-size: 0.6em;
    font-weight: 600;
    margin-right: 7px;
    opacity: 0.88;
}

/* 좁은 화면에선 '· 영업 중'이 다음 줄로 넘어가는데, 구분점이 줄 앞에 홀로 남으면 어색하다 */
.night-clock .sep { opacity: 0.55; }

/* 인라인 흐름이라 공백마다 줄바꿈될 수 있다 — 구절이 통째로 넘어가게 묶는다
   (안 묶으면 375px에서 '영업 중'이 '영업'/'중'으로 쪼개진다) */
.night-clock .clock-label,
.night-clock .open-now { white-space: nowrap; }

@media (max-width: 639px) {
    .night-clock .sep { display: none; }
}

.night-clock .dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6EE7A0;
    box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(110, 231, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.night-sub { color: rgba(250, 244, 232, 0.75); }

/* ------------------------------ 이용 방법 ------------------------------ */

.how { padding: 76px 0; }

.steps {
    display: grid;
    gap: 22px;
    counter-reset: step;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.step-num {
    font-family: var(--font-display);
    display: inline-block;
    color: var(--orange);
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 12px;
}

.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { font-size: 0.97rem; }

/* ------------------------------ 취급 상품 ------------------------------ */

.products { padding: 4px 0 76px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.product {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27, 60, 115, 0.1);
}

.product .product-icon { margin: 0 auto 14px; }
.product h3 { font-size: 1.15rem; margin-bottom: 4px; }
.product p { font-size: 0.92rem; }

.products-note {
    margin-top: 26px;
    text-align: center;
    font-size: 1rem;
}

.products-note a { font-weight: 700; color: var(--orange-deep); }

/* ------------------------------ 오시는 길 ------------------------------ */

.location { padding: 0 0 76px; }

.location-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.location-addr {
    font-size: clamp(1.15rem, 2.6vw, 1.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.location-tel { margin-bottom: 4px; }
.location-tel a { font-weight: 700; text-decoration: none; }
.location-hours { margin-bottom: 22px; }

.location-map {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-map:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 60, 115, 0.14);
}

/* --------------------------------- FAQ --------------------------------- */

.faq { padding: 0 0 76px; }

.faq-list { display: grid; gap: 12px; max-width: 760px; }

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 22px;
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

/* 접힘 +, 펼침 − . Jua(디스플레이체)엔 U+2212가 없어 본문 폰트로 그린다 */
.faq-list summary::after {
    content: '+';
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--orange);
    line-height: 1;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: '−'; }

.faq-list details p { padding: 0 0 20px; }

/* ----------------------------- 카카오 배너 ----------------------------- */

.contact-banner { padding: 0 0 88px; }

.contact-inner {
    background: linear-gradient(120deg, var(--orange) 0%, var(--orange-deep) 100%);
    border-radius: 26px;
    padding: 44px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.contact-inner h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: 6px; }
.contact-inner p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }

/* --------------------------------- 푸터 --------------------------------- */

.site-footer {
    background: var(--navy-deep);
    padding: 52px 0;
    text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo { filter: drop-shadow(0 0 1px rgba(255,255,255,0.4)); }
.site-footer p { color: rgba(250, 244, 232, 0.72); font-size: 0.92rem; }
.site-footer .copyright { font-size: 0.85rem; opacity: 0.8; }

/* ------------------------------ 스크롤 리빌 ------------------------------ */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

/* -------------------------------- 반응형 -------------------------------- */

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { flex-direction: row; justify-content: space-between; text-align: left; padding: 44px 48px; }
}

@media (min-width: 900px) {
    .site-nav { display: flex; }
    .hero { padding: 84px 0 100px; }
    .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .night-inner { flex-direction: row; text-align: left; justify-content: center; gap: 56px; }
    .location-grid { grid-template-columns: 0.9fr 1.1fr; }
    .br-m { display: none; }
}

/* ---------------------------- 모션 최소화 존중 ---------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
