/* ===== 치폴레 가이드 / Chipotle Guide — Design Tokens ===== */
:root {
  --red: #A61B0E;
  --red-dark: #7A140B;
  --cream: #F4EDE2;
  --cream-soft: #EDE3D3;
  --brown: #3A2317;
  --brown-soft: #6B4A37;
  --border: #E2D5BE;
  --white: #FFFFFF;
  --shadow: 0 1px 3px rgba(58, 35, 23, 0.08);
  --radius: 6px;
  --header-h: 64px;
  --font-head: 'Outfit', 'Pretendard', sans-serif;
  --font-body: 'Inter', 'Pretendard', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--brown);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Chili motif divider ===== */
.chili-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
  color: var(--red);
}
.chili-divider::before,
.chili-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.chili-divider svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 2px solid var(--brown);
  display: flex;
  align-items: center;
}
/* 홈 전용 미니멀 헤더: 언어토글만 있으므로 높이를 줄여 콘텐츠에 여유를 줌 */
.site-header.minimal { border-bottom: none; height: 48px; }
.site-header.minimal .lang-toggle { transform: translateY(7px); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  height: 100%;
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--red);
  transform: translateY(-2px);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.header-nav a.active,
.header-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.lang-toggle {
  display: flex;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-toggle button {
  background: var(--white);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown-soft);
}
.lang-toggle button.active { background: var(--brown); color: var(--white); }
.nav-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
}

/* ===== Home (fits one screen when there's room, scrolls when there isn't) ===== */
#app.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#app.home-shell .site-header { flex: 0 0 auto; }
#app.home-shell main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#app.home-shell .site-footer { flex: 0 0 auto; }

.home-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7.4vh;
  padding-bottom: 2vh;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  transform: translateY(-14px);
}
.home-title {
  font-size: clamp(40px, min(9vh, 11vw), 110px);
  line-height: 1;
  color: var(--red);
  letter-spacing: 0;
  margin: 0;
}
.home-sub {
  color: var(--brown-soft);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 2.6vh, 22px);
  line-height: 1.3;
  margin: 3vh 0 0;
  transform: translateY(-10px);
}
.home-grid-wrap {
  margin-top: 2.4vh;
  padding: 0 20px;
  width: 100%;
}
.home-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 2.2vw;
}
.home-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--brown-soft);
  display: block;
  width: min(30vw, 360px);
  aspect-ratio: 2 / 3;
  flex-shrink: 1;
  min-width: 150px;
  text-align: left;
  container-type: inline-size;
}
.home-card .ph-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 237, 226, 0.55);
  font-size: clamp(10px, 5cqw, 13px);
  text-align: center;
  padding: 20px;
}
.home-card .ph-bg.photo {
  background-size: cover;
  background-position: center;
}
.home-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,35,23,0.15) 0%, rgba(58,35,23,0.55) 100%);
  transition: background 0.15s ease;
}
.home-card:hover .overlay,
.home-card:focus-visible .overlay { background: linear-gradient(180deg, rgba(58,35,23,0.35) 0%, rgba(58,35,23,0.7) 100%); }
.home-card .label {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  color: var(--white);
}
.home-card .label .ko {
  font-family: var(--font-head);
  font-size: clamp(14px, 10cqw, 27px);
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ko"] .home-sub { letter-spacing: -0.02em; }
html[lang="ko"] .home-card .label .ko { letter-spacing: 0; font-weight: 600; }
/* 카드 배열: 가로가 세로보다 길면(landscape, 기본) 1x3 한 줄, 세로가 가로보다 길거나 같으면(portrait) 3x1 스택 */
@media (max-aspect-ratio: 1/1) {
  .home-viewport { transform: translateY(0px); padding-top: 5.51vh; }
  .home-title { transform: translateY(-8px); }
  .home-sub { margin: 1.95vh 0 0; }
  .home-grid-wrap { margin-top: 1.56vh; }
  .home-grid { flex-direction: column; gap: 2vh; }
  .home-card { width: min(88vw, 480px); height: auto; aspect-ratio: 3 / 1; }
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--brown);
    padding: 12px 20px 16px;
    gap: 4px;
  }
  .header-nav.open a { padding: 12px 4px; font-size: 15px; }
  .nav-toggle-btn { display: inline-block; padding: 8px 14px; font-size: 16px; }
  .lang-toggle button { padding: 9px 15px; font-size: 13px; }
}

/* 좁은 화면에서 상단배너/홈 타이틀 줄바뀜 방지 (필요한 만큼만 축소) */
@media (max-width: 480px) {
  .brand { font-size: clamp(15px, 5vw, 24px); transform: translateY(0px); }
  .home-title { font-size: clamp(28px, 9vw, 42px); }
}

/* 상세 페이지(메뉴/조합/주문방법) 모바일 여백 보강 */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .page { padding-top: 14px; padding-bottom: 56px; }
  .page-title { margin-bottom: 10px; }
  .page-lede { margin-bottom: 32px; }
  .section { margin-bottom: 40px; }
  .menu-grid, .combo-grid { gap: 18px; }
  .menu-card-body { padding: 16px; }
  .combo-card { padding: 18px 18px 16px; }
  .tab-row, .filter-row { gap: 10px; }
  .tab-row { margin-bottom: 22px; }
  .filter-row { margin-bottom: 24px; }
  .step-list { gap: 18px; }
  .step-card { padding: 20px 18px; }
  .channel-grid { gap: 16px; }
  .tab-btn { padding: 11px 20px; font-size: 14px; }
  .filter-chip { padding: 9px 16px; font-size: 13px; }
}

/* ===== Placeholder image block (generic, non-home) ===== */
.ph-image {
  border: 1.5px dashed var(--brown-soft);
  border-radius: var(--radius);
  background: var(--cream-soft);
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  padding: 18px;
  min-height: 140px;
}
.ph-image .ph-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.ph-image.photo {
  border: none;
  padding: 0;
  background-color: var(--cream-soft);
  background-size: cover;
  background-position: center;
}

/* ===== Page layout ===== */
.page {
  padding-top: 18px;
  padding-bottom: 64px;
}
.page-title {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--red);
}
.page-lede {
  color: var(--brown-soft);
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 28px;
}
.section { margin-bottom: 44px; }
.section h2 { font-size: 22px; color: var(--brown); }
.section h2 .accent { color: var(--red); }

.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  color: var(--brown-soft);
}

/* ===== How to order — steps ===== */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 900px) { .step-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .step-list { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
}
.step-card .step-num {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.step-card h3 { font-size: 15px; margin-bottom: 6px; }
.step-card .step-en { font-size: 11px; color: var(--brown-soft); text-transform: none; letter-spacing: 0; margin-bottom: 10px; display: block; }
.step-card ul { font-size: 13px; color: var(--brown-soft); }
.step-card ul li { margin-bottom: 4px; padding-left: 14px; position: relative; }
.step-card ul li::before { content: "•"; color: var(--red); position: absolute; left: 0; }
.step-card .free-tag { color: #3E7A3E; font-weight: 700; }
.step-card .paid-tag { color: var(--red); font-weight: 700; }
.step-arrow {
  display: none;
}
@media (min-width: 901px) {
  .step-list { position: relative; }
}

.tip-box {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 10px;
}
.tip-box .tip-line { margin-bottom: 10px; font-size: 13.5px; }
.tip-box .tip-line:last-child { margin-bottom: 0; }
.tip-box .tip-ko { font-weight: 600; color: var(--brown); }
.tip-box .tip-en { color: var(--brown-soft); font-size: 12.5px; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .channel-grid { grid-template-columns: 1fr; } }
.channel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--brown-soft);
}
.channel-card h4 { font-size: 14px; margin-bottom: 4px; }

/* ===== Menu page ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.menu-card .ph-image { height: 140px; flex: 0 0 auto; border-radius: 0; border-width: 0 0 1px 0; }
.menu-card .menu-card-body { padding: 12px 14px; }
.menu-card.no-photo .menu-card-body { padding: 16px; }
.menu-card.no-photo { border-left: 3px solid var(--border); }
.menu-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 14px; margin-bottom: 2px; white-space: normal; word-break: keep-all; }
.menu-card .en-name { font-size: 11px; color: var(--brown-soft); text-transform: none; letter-spacing: 0; display: block; margin-bottom: 6px; }
.menu-card p {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--brown-soft);
  margin-bottom: 8px;
}
.menu-card .price { font-weight: 700; color: var(--red); font-size: 13.5px; }
.menu-card .tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tag-chip {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--brown-soft);
  border: 1px solid var(--border);
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--border);
}
.simple-table th, .simple-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.simple-table th { background: var(--cream-soft); font-family: var(--font-head); font-weight: 400; letter-spacing: 0.02em; }
.table-scroll { overflow-x: auto; }
.price-note { font-size: 12px; color: var(--brown-soft); margin-top: 8px; }

/* ===== Combos page ===== */
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brown-soft);
}
.tab-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-chip {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--brown-soft);
}
.filter-chip.active { background: var(--brown); color: var(--white); border-color: var(--brown); }

.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.combo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.combo-card .badge-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.combo-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; margin-bottom: 2px; word-break: keep-all; }
.combo-card .en-name { font-size: 11px; color: var(--brown-soft); text-transform: none; letter-spacing: 0; display: block; margin-bottom: 8px; }
.combo-card .combo-items { font-family: var(--font-body); font-size: 12.5px; color: var(--brown-soft); margin-bottom: 10px; }
.combo-card .combo-items li { padding-left: 12px; position: relative; margin-bottom: 2px; }
.combo-card .combo-items li::before { content: "-"; position: absolute; left: 0; }
.combo-card .comment { font-family: var(--font-body); font-size: 13px; color: var(--brown); border-top: 1px dashed var(--border); padding-top: 10px; margin-bottom: 8px; }
.combo-card .meta-row { display: flex; gap: 6px; flex-wrap: wrap; }

.badge-celebrity { background: #F1D9B0; color: #7A4E10; border-color: #E3C48A; }
.badge-official { background: #F3D9D6; color: var(--red-dark); border-color: #E6B9B3; }
.badge-korea { background: #DCE7F7; color: #2C4E7A; border-color: #BFD3EE; }
.badge-international { background: #DCEFDD; color: #2C6B34; border-color: #BEE0C0; }
.badge-guide { background: var(--cream-soft); color: var(--brown-soft); border-color: var(--border); }

.empty-state { text-align: center; color: var(--brown-soft); padding: 40px 0; font-size: 14px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--brown);
  background: var(--cream-soft);
  padding: 8px 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--brown-soft);
  text-align: center;
}
.site-footer p { margin: 0 0 2px; }
.site-footer p:last-child { margin-bottom: 0; }
.footer-contact { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 600; }
.footer-contact a { color: var(--red); text-decoration: underline; }
.footer-contact-pending { color: var(--brown-soft); font-style: italic; font-weight: 400; }

@media (max-width: 600px) {
  .site-footer { font-size: 9px; }
}
