/* 장흥한우 할인 직판장
   기본 = 모바일. 1024px 이상은 PC 전용 구성입니다.
   움직임은 버튼 눌림(0.97)과 색 전환뿐입니다. */

:root {
  --bg: #0d0b0a;
  --surface: #161210;
  --surface-2: #1f1916;
  --line: #342b26;
  --line-soft: #271f1b;
  --text: #f5eee7;
  --muted: #bcafa3;

  --red: #d12a3a;
  --red-hover: #e0384a;
  --red-text: #ff6a76;
  --ok: #4ec27c;

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: 20px;
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, address, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }

.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.sample-bar { background: #000; color: #a79a8f; font-size: 0.8125rem; line-height: 1.4; text-align: center; padding: 7px var(--gutter); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245, 238, 231, 0.4); }
.btn-block { display: flex; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-hover); }
  .btn-ghost:hover { border-color: var(--text); }
}

/* ---------- 상단 ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.nav-in { height: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; position: relative; padding-left: 18px; }
.logo small { font-weight: 600; font-size: 0.8125rem; color: var(--muted); letter-spacing: -0.01em; }
.logo-dot { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--red); }
.nav-links { display: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.nav-cta:active { transform: scale(0.96); }
.page-contact .nav-cta { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* ---------- 히어로 ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-h) - 30px); display: flex; }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 11, 10, 0.2) 0%, rgba(13, 11, 10, 0.6) 40%, rgba(13, 11, 10, 0.94) 75%, var(--bg) 100%); }
.hero-in { position: relative; width: 100%; max-width: 1180px; margin-inline: auto; padding: 120px var(--gutter) 88px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-place { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
h1 { font-size: clamp(2.5rem, 11.4vw, 3.5rem); font-weight: 800; line-height: 1.16; letter-spacing: -0.035em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--red-text); }
.hero-lede { margin-top: 16px; color: #dcd0c5; }
.hero-cta { margin-top: 28px; display: grid; gap: 10px; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7d7168; flex: none; }
.chip[data-state="open"] { color: var(--ok); }
.chip[data-state="open"]::before { background: var(--ok); }

/* ---------- 섹션 ---------- */
.sec { padding: 64px 0 72px; }
.sec-alt { background: var(--surface); }
h2 { font-size: clamp(1.75rem, 7.2vw, 2.25rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; text-wrap: balance; }
.sec-sub { margin-top: 12px; color: var(--muted); max-width: 46ch; }

.fnum { display: inline-grid; place-items: center; min-width: 54px; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.fnum-2 { background: #f5eee7; color: var(--bg); }
.fnum-sm { min-width: 40px; height: 26px; font-size: 0.875rem; margin-right: 10px; vertical-align: middle; }

/* 1층 · 2층 */
.floor-grid { margin-top: 32px; display: grid; gap: 16px; }
.fcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.fcard img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.fcard-body { padding: 22px 20px 24px; display: grid; gap: 10px; justify-items: start; }
.fcard-top { display: flex; align-items: center; gap: 14px; }
.fcard h3 { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.fcard p { color: #d6cabf; }
.fcard .fhours { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* 메뉴 */
.menu-grid { margin-top: 32px; display: grid; gap: 28px; }
.mlist h3 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.mlist h3 small { margin-left: auto; font-size: 0.875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.leaders li { display: flex; align-items: baseline; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.l-name { order: 0; font-weight: 600; }
.l-name small { display: block; font-weight: 400; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.leaders li::before { content: ""; order: 1; flex: 1 1 12px; min-width: 10px; align-self: end; margin-bottom: 7px; border-bottom: 2px dotted #5a4c43; }
.l-price { order: 2; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 예약 안내 */
.go-grid { margin-top: 28px; display: grid; gap: 12px; }
.go { position: relative; display: grid; gap: 4px; padding: 22px 56px 22px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.go:active { transform: scale(0.98); }
.go b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.go span { color: var(--muted); font-size: 0.9375rem; }
.go .i { position: absolute; right: 22px; top: 50%; margin-top: -0.6em; color: var(--red-text); }
@media (hover: hover) and (pointer: fine) { .go:hover { border-color: var(--red-text); } }

/* 오시는 길 */
.visit-grid { display: grid; gap: 36px; }
.addr { margin-top: 20px; display: grid; gap: 2px; }
.addr-line { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.addr-name { color: var(--muted); }
.visit-actions { margin-top: 24px; display: grid; gap: 10px; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 16px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; white-space: nowrap; width: 1%; padding-right: 20px; }
.hours td { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.hours td small { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--muted); }

/* 푸터 / 하단 독 */
.foot { background: #070606; color: var(--muted); padding: 40px 0 36px; font-size: 0.9375rem; }
.foot-in { display: grid; gap: 16px; }
.foot-brand { font-weight: 800; font-size: 1.125rem; color: var(--text); margin-bottom: 6px; letter-spacing: -0.02em; }
.foot-small { font-size: 0.8125rem; color: #8b7f75; }

.dock { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-soft); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 1.0625rem; transition: transform 160ms var(--ease-out); }
.dock a:active { transform: scale(0.97); }
.dock-call { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.dock-go { background: var(--red); color: #fff; }

/* ---------- 문의 페이지 ---------- */
.contact-wrap { padding-top: 36px; padding-bottom: 72px; display: grid; gap: 40px; }
.page-title { font-size: clamp(2rem, 8vw, 2.5rem); }
.page-sub { margin-top: 10px; color: var(--muted); }

.seg { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; }
.seg button { min-height: 52px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 1.0625rem; border-radius: 9px; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.seg button:active { transform: scale(0.97); }
.seg button[aria-selected="true"] { background: var(--red); color: #fff; }

.forms { margin-top: 16px; }
.form, .done { padding: 8px 20px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
.forms[data-active="group"] #panel-delivery, .forms[data-active="delivery"] #panel-group { display: none; }

.field { margin-top: 22px; display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.9688rem; padding: 0; }
.opt { font-weight: 500; font-size: 0.8125rem; color: var(--muted); margin-left: 4px; }

input, select, textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 10px;
  background-color: var(--bg); border: 1px solid #473b34; color: var(--text); color-scheme: dark;
  font-size: 1.0625rem; line-height: 1.4; appearance: none; -webkit-appearance: none;
  transition: border-color 160ms ease;
}
textarea { resize: vertical; min-height: 96px; }
::placeholder { color: #9a8d82; opacity: 1; }
select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none' stroke='%23bcafa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 106, 118, 0.55); outline-offset: 0; border-color: var(--red-text); }
[aria-invalid="true"] { border-color: var(--red-text) !important; }
.err { font-size: 0.9375rem; font-weight: 600; color: var(--red-text); }
.err:empty { display: none; }

.stepper { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; }
.stepper input { text-align: center; font-weight: 800; font-size: 1.375rem; padding-inline: 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { display: grid; place-items: center; min-height: 54px; border-radius: 10px; background: var(--surface-2); border: 1px solid #473b34; color: var(--text); transition: transform 160ms var(--ease-out); }
.step-btn:active { transform: scale(0.94); }

.cuts legend { margin-bottom: 8px; }
.cut-list { display: grid; gap: 10px; }
.cut-row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }
.cut-row.removable { grid-template-columns: 1fr 112px 48px; }
.weight { position: relative; display: block; }
.weight input { padding-right: 38px; text-align: right; }
.unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.cut-remove { display: grid; place-items: center; min-height: 54px; border-radius: 10px; background: var(--surface-2); border: 1px solid #473b34; color: var(--text); }
.cut-remove[hidden] { display: none; }
.add-cut { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 10px; min-height: 48px; padding: 0 16px; border-radius: 10px; background: transparent; color: var(--text); border: 1px dashed #6b5b51; font-weight: 700; transition: transform 160ms var(--ease-out); }
.add-cut:active { transform: scale(0.97); }
.add-cut[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin-top: 28px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.submit:active { transform: scale(0.98); }
.submit[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .submit:not([disabled]):hover { background: var(--red-hover); } }
.form-error { margin-top: 14px; font-weight: 700; font-size: 0.9375rem; color: var(--red-text); }
.form-error:empty { display: none; }

.done { text-align: center; padding-block: 48px; }
.done[hidden] { display: none; }
.done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 16px; }
.done-mark .i { width: 30px; height: 30px; stroke-width: 3; }
.done h2 { font-size: 1.5rem; }
.done p { margin: 8px auto 0; color: var(--muted); max-width: 30ch; }
.again { margin-top: 24px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: transparent; color: var(--text); border: 1px solid #6b5b51; font-weight: 700; transition: transform 160ms var(--ease-out); }
.again:active { transform: scale(0.97); }

.contact-aside { display: grid; gap: 20px; align-content: start; padding-top: 4px; }
.contact-aside h2 { font-size: 1.375rem; }
.addr-sm { margin-top: 0; }
.addr-sm .addr-line { font-size: 1.125rem; }

/* =====================================================================
   PC (1024px 이상): 가로 화면용으로 다시 짠 구성
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --nav-h: 76px; }
  body { padding-bottom: 0; font-size: 1.125rem; }
  .dock { display: none; }

  .nav-in { gap: 40px; }
  .logo { font-size: 1.5rem; }
  .logo small { font-size: 0.9375rem; }
  .nav-links { display: flex; gap: 6px; margin-left: auto; }
  .nav-links a { padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--muted); transition: color 160ms ease, background-color 160ms ease; }
  .nav-cta { min-height: 46px; padding: 0 24px; font-size: 1rem; }
  @media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); background: var(--surface); } }
  .page-contact .nav-links { margin-left: auto; }

  /* 히어로: 왼쪽 글, 오른쪽 큰 사진 */
  .hero { min-height: min(760px, calc(100svh - var(--nav-h) - 30px)); }
  .hero-photo { left: 44%; }
  .hero-photo img { object-position: 50% 40%; }
  .hero-photo::after { background: linear-gradient(to right, var(--bg) 0%, rgba(13, 11, 10, 0.7) 22%, rgba(13, 11, 10, 0.05) 60%); }
  .hero-in { justify-content: center; padding: 72px var(--gutter); }
  .hero-copy { max-width: 620px; }
  .hero-place { font-size: 1.0625rem; margin-bottom: 20px; }
  h1 { font-size: clamp(3.6rem, 5.6vw, 5.5rem); line-height: 1.14; }
  .hero-lede { font-size: 1.25rem; margin-top: 24px; }
  .hero-cta { margin-top: 40px; grid-template-columns: auto auto; justify-content: start; gap: 12px; }
  .hero-cta .btn { min-height: 62px; padding: 0 34px; font-size: 1.1875rem; }

  .sec { padding: 112px 0 120px; }
  h2 { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
  .sec-sub { font-size: 1.1875rem; }

  /* 1층·2층: 사진 왼쪽 글 오른쪽 가로 카드 두 줄 */
  .floor-grid { margin-top: 56px; gap: 24px; }
  .fcard { display: grid; grid-template-columns: 5fr 6fr; }
  .fcard img { height: 320px; aspect-ratio: auto; }
  .fcard-body { padding: 40px 48px; align-content: center; gap: 14px; }
  .fcard h3 { font-size: 2.25rem; }
  .fcard p { font-size: 1.1875rem; max-width: 34ch; }
  .fcard:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .fcard:nth-child(even) img { order: 2; }

  .menu-grid { margin-top: 56px; grid-template-columns: 1fr 1fr; gap: 64px; }
  .mlist h3 { font-size: 1.625rem; }
  .leaders li { padding: 18px 0; }
  .l-name { font-size: 1.125rem; }
  .l-price { font-size: 1.25rem; }

  .go-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
  .go { padding: 36px 72px 36px 36px; }
  .go b { font-size: 1.625rem; }
  .go span { font-size: 1.0625rem; }
  .go .i { right: 32px; }

  .visit-grid { grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: center; }
  .addr-line { font-size: 2rem; }
  .addr-name { font-size: 1.125rem; }
  .visit-actions { grid-template-columns: auto auto; justify-content: start; gap: 12px; }
  .visit-actions .btn { min-height: 62px; padding: 0 30px; }
  .hours td { font-size: 1.25rem; }
  .hours th { font-size: 1.125rem; }

  /* 문의 페이지: 왼쪽 폼, 오른쪽 매장 정보 */
  .contact-wrap { grid-template-columns: minmax(0, 680px) 1fr; gap: 96px; padding-top: 72px; padding-bottom: 120px; }
  .page-title { font-size: 3rem; }
  .seg { max-width: 420px; }
  .form, .done { padding: 12px 40px 40px; }
  .contact-aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; gap: 24px; margin-top: 8px; }

  .foot-in { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1440px) { .hero-photo { left: 40%; } }
