/* 청춘삼겹살 범어본점 */

:root {
  --soot: #241B17;        /* 따뜻한 숯 갈색 */
  --soot-2: #30251F;
  --tallow: #F5ECE3;      /* 사진 위 글자 */
  --tallow-soft: #D3C3B6;
  --paper: #EFE6DD;       /* 정보 섹션 바탕 */
  --paper-line: rgba(36,27,23,.16);
  --ink: #241B17;
  --ink-soft: #66574E;
  --brand: #8F2E24;
  --brand-hover: #A6372B;

  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.36rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --step-4: clamp(3rem, 1.8rem + 6vw, 7.4rem);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--soot); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tallow); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--brand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tallow); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 4px; border: 1.5px solid transparent;
  font: 600 var(--step-0)/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-hover); }
.btn-ghost { border-color: rgba(245,236,227,.6); color: var(--tallow); background: rgba(36,27,23,.25); }
.btn-ghost:hover { background: var(--tallow); color: var(--ink); }
.link-light { color: var(--tallow); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-light:hover { color: #fff; }

/* 헤더 */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  color: var(--tallow);
  background: linear-gradient(180deg, rgba(20,14,11,.55), rgba(20,14,11,0));
  transition: background-color .25s;
}
.site-header.is-scrolled { background: rgba(36,27,23,.94); backdrop-filter: blur(10px); }
.brand img { width: 62px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { white-space: nowrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--tallow); opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* 장면: 풀블리드 사진 + 글자 */
.scene { position: relative; min-height: 100svh; display: flex; color: var(--tallow); overflow: hidden; isolation: isolate; }
.scene-media { position: absolute; inset: 0; z-index: -2; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene-shade { position: absolute; inset: 0; z-index: -1; }
.scene-body { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) clamp(48px, 8vh, 96px); display: flex; flex-direction: column; }

.title-light {
  font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.3;
  color: #fff; margin-bottom: clamp(20px, 3vw, 32px);
}

/* 언어 */
.langs { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav + .langs { margin-left: 4px; }
.langs button, .langs a {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--tallow); opacity: .7; font: 500 var(--step--1)/1 var(--sans);
  padding: 8px 7px; text-underline-offset: 6px; text-decoration: none;
}
.langs button:hover, .langs a:hover { opacity: 1; }
.langs button[aria-pressed="true"], .langs a[aria-current="page"] { opacity: 1; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1.5px; }
html[lang="zh-Hans"] body, html[lang="zh-Hans"] button {
  font-family: "Pretendard Variable", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.ko-name { display: none; font-size: .78em; font-weight: 500; color: var(--ink-soft); margin-left: 4px; white-space: nowrap; }
html:not([data-current-lang="ko"]) .ko-name { display: inline; }
html:not([data-current-lang]) .ko-name { display: none; }
.ko-hint { margin-top: 16px; display: inline-block; align-self: flex-start; background: rgba(245,236,227,.95); color: var(--ink); font-size: var(--step-0); font-weight: 600; padding: 10px 14px; border-radius: 4px; }
.ko-hint[hidden] { display: none; }

/* 히어로 */
.scene-hero .scene-media img { object-position: 50% 40%; }
.scene-hero .scene-shade { background: linear-gradient(180deg, rgba(20,14,11,.35) 0%, rgba(20,14,11,.2) 35%, rgba(20,14,11,.85) 100%); }
.hero-body { justify-content: flex-end; }
.hero-logo { width: min(440px, 62vw); margin-bottom: clamp(28px, 4vw, 48px); }
.hero-logo img { width: 100%; }
.hero-info { display: grid; gap: 6px; }
.hero-place { font-size: var(--step-1); font-weight: 700; color: #fff; }
.hero-hours { font-size: var(--step-0); color: var(--tallow-soft); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }

/* 이야기 */
.scene-story .scene-media img { object-position: 30% 12%; }
.shade-left { background: linear-gradient(90deg, rgba(20,14,11,0) 30%, rgba(20,14,11,.86) 70%); }
.story-body { justify-content: center; align-items: flex-end; }
.story-body > * { width: min(100%, 34rem); }
.story-body p { font-size: var(--step-0); line-height: 1.9; color: var(--tallow); }
.story-body p + p { margin-top: 1em; }

/* 종이 섹션 */
.paper { background: var(--paper); color: var(--ink); padding: clamp(80px, 11vw, 140px) 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.title { font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.3; margin-bottom: clamp(28px, 4vw, 48px); }

.promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.promise { border-top: 1px solid var(--ink); padding-top: 18px; }
.promise h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.promise p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.85; }
.closing { margin-top: clamp(40px, 6vw, 64px); font-size: var(--step--1); color: var(--ink-soft); line-height: 1.8; }

/* 고기 */
.scene-meat .scene-media img { object-position: 50% 50%; }
.shade-bottom { background: linear-gradient(180deg, rgba(20,14,11,.15) 25%, rgba(20,14,11,.88) 82%); }
.meat-body { justify-content: flex-end; }
.meat-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(28px, 4vw, 56px); max-width: 64rem; }
.meat-text p { color: var(--tallow); font-size: var(--step--1); line-height: 1.85; }

/* 메뉴 */
.cuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cut img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; margin-bottom: 14px; }
.cut-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cut h4 { margin: 0; font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.cut .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cut .desc { margin-top: 8px; font-size: var(--step--1); line-height: 1.7; color: var(--ink-soft); }

.sides { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px clamp(32px, 6vw, 96px); }
.sides-title { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; }
.sides + .sides { margin-top: clamp(40px, 5vw, 64px); }
.side-list.side-list-single { grid-template-columns: 1fr; max-width: calc(50% - clamp(12px, 2vw, 28px)); }
.menu-note { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); max-width: 46em; }
.menu-group { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; }
.side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--ink); }
.side-list li { padding: 14px 0 16px; border-bottom: 1px solid var(--paper-line); }
.side-head { display: flex; justify-content: space-between; gap: 16px; }
.side-name { font-weight: 700; }
.side-price, .cut .price { flex: none; }
.side-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.side-list p { margin-top: 4px; font-size: var(--step--1); color: var(--ink-soft); }

/* 매장 */
.gallery { background: var(--soot); color: var(--tallow); padding: clamp(80px, 11vw, 140px) clamp(12px, 1.2vw, 16px) clamp(12px, 1.2vw, 16px); }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.gallery-head .title-light { margin: 0; }
.gallery-head p { color: var(--tallow-soft); max-width: 40em; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 22vw, 340px); gap: clamp(12px, 1.2vw, 16px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tile-wide { grid-column: span 2; grid-row: span 2; }
.gallery-more { text-align: right; padding: 20px var(--gutter) 12px; font-size: var(--step--1); }

/* 오시는 길 */
.scene-visit { min-height: 72svh; }
.scene-visit .scene-media img { object-position: 30% 30%; }
.visit-head { justify-content: flex-end; }
.visit-head .title-light { margin-bottom: 14px; }
.visit-addr { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; color: #fff; }
.visit-sub { margin-top: 10px; color: var(--tallow-soft); font-size: var(--step--1); }

.info { background: var(--soot); color: var(--tallow); padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 10vw, 120px); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.info-block { font-size: var(--step--1); line-height: 1.85; color: var(--tallow-soft); }
.info-block h3 { font-size: var(--step-0); font-weight: 700; color: #fff; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(245,236,227,.2); }
.info-block p + p { margin-top: 12px; }
.info-block h3.sub { margin-top: 28px; }
.info-block strong { color: var(--tallow); font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; color: var(--tallow-soft); padding: 6px 0; }
.hours td { text-align: right; font-weight: 700; color: #fff; font-size: var(--step-0); font-variant-numeric: tabular-nums; }
.note { margin-top: 12px; }
.info-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.info-links a { color: var(--tallow); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.info-links a:hover { color: #fff; }
.tel a { font-size: var(--step-2); font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.02em; }

/* 푸터 */
.site-footer { background: var(--soot-2); color: var(--tallow-soft); padding: 48px var(--gutter) 56px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; font-size: var(--step--1); line-height: 1.8; }
.footer-logo { width: 96px; }
.footer-text a { text-decoration: none; margin-right: 14px; }
.footer-text a:hover { color: #fff; text-decoration: underline; }
.footer-text p + p { margin-top: 10px; }

.mobile-cta { display: none; }

/* 태블릿 */
@media (max-width: 1000px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .cuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sides { grid-template-columns: 1fr; }
  .fineprint { grid-column: 1; }
  .promise-list { grid-template-columns: 1fr; }
  .meat-text { grid-template-columns: 1fr; }
}

/* 모바일 */
@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .header-cta { display: none; }
  .hero-actions { display: none; }
  .site-header { gap: 12px; }
  .langs button, .langs a { padding: 8px 6px; }
  .scene { min-height: 88svh; }
  .scene-hero { min-height: 100svh; }
  .hero-body { padding-bottom: 104px; }
  .shade-left { background: linear-gradient(180deg, rgba(20,14,11,.1) 10%, rgba(20,14,11,.9) 55%); }
  .story-body { justify-content: flex-end; align-items: stretch; }
  .scene-story .scene-media img { object-position: 40% 10%; }
  .story-body p { font-size: var(--step-0); }
  .story-body br { display: none; }
  .cuts { grid-template-columns: 1fr; gap: 28px; }
  .cut { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; }
  .cut img { grid-row: 1 / 3; margin: 0; }
  .side-list { grid-template-columns: 1fr; }
  .gallery-head { grid-template-columns: 1fr; }
  .hero-logo { width: 72vw; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .mosaic .tile-wide { grid-column: span 2; grid-row: span 1; }
  .info-grid { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(36,27,23,.95); backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 rgba(245,236,227,.1);
  }
  .mobile-cta .btn { flex: 1 1 0; min-width: 0; padding: 4px 8px; min-height: 48px; font-size: .86rem; line-height: 1.2; white-space: normal; text-align: center; }
  .mobile-cta .btn-tel { flex: 0 0 72px; }
  .side-list.side-list-single { max-width: none; }
}

/* 가격: 한국어는 '원', 외국어는 '₩' */
.won::after { content: "원"; }
html[data-current-lang]:not([data-current-lang="ko"]) .won::after { content: none; }
html[data-current-lang]:not([data-current-lang="ko"]) .won::before { content: "₩"; }

/* 자주 묻는 질문 */
.faq-list { border-top: 1px solid var(--ink); max-width: 860px; }
.faq-item { border-bottom: 1px solid rgba(40, 30, 26, .16); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: var(--step-0); letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.4em; line-height: 1; color: var(--ink-soft); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; color: var(--ink-soft); max-width: 44em; }
.site-footer address { font-style: normal; }
.gallery-text p + p { margin-top: 1em; }
.site-footer .tags { font-size: var(--step--1); opacity: .7; word-spacing: .2em; }
html[data-current-lang]:not([data-current-lang="ko"]) .site-footer .tags { display: none; }

/* ───────── 모션 (과하지 않게, 한 번씩) ─────────
   html.motion 일 때만 동작: 움직임 줄이기 설정이면 전부 꺼진다. */
.motion .scene-hero .scene-media img { animation: hero-settle 2.2s cubic-bezier(.2, .7, .2, 1) both; }
.motion .hero-logo { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .25s both; }
.motion .hero-info { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .55s both; }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 스크롤 등장 */
.motion [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* 전면 사진 패럴랙스: 이동 폭만큼 여유를 두고 살짝 키워 둔다 */
.motion .scene:not(.scene-hero) .scene-media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }

/* 마우스 반응 */
.cut img, .mosaic img { transition: filter .4s ease; }
.cut:hover img, .mosaic img:hover { filter: brightness(1.08) saturate(1.04); }
.link-light { transition: color .25s, text-decoration-color .25s; text-decoration-color: rgba(239, 227, 214, .45); }
.link-light:hover { text-decoration-color: currentColor; }
.nav a { transition: opacity .2s; }

/* 언어 바꿀 때 글자가 툭 바뀌지 않게 */
.motion #main.is-switching { animation: lang-fade .35s ease both; }
@keyframes lang-fade { from { opacity: .35; } to { opacity: 1; } }
