/* ============================================================
   艾維斯美食所 ELVIS FOOD LAB — 全站共用樣式
   Design Tokens: 溫暖家庭廚房風格
   ============================================================ */

:root {
  /* --- 色彩系統 --- */
  --color-cream: #FBF6ED;         /* 米白底 */
  --color-butter: #F3E8D2;        /* 奶油色 */
  --color-tomato: #E1553B;        /* 番茄紅 - 主色 */
  --color-tomato-dark: #C0432C;
  --color-tomato-light: #F5D6CC;
  --color-olive: #6B7A4F;         /* 橄欖綠 - 輔色 */
  --color-olive-dark: #52603C;
  --color-olive-light: #E3E8D6;
  --color-coffee: #4A3A2C;        /* 深咖啡文字 */
  --color-coffee-soft: #7A6857;
  --color-white: #FFFFFF;
  --color-line: #E8DFCE;
  --color-success: #6B7A4F;
  --color-warn: #D98B3F;

  /* --- 字體 --- */
  --font-display: "Noto Serif TC", "Source Han Serif TC", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* --- 間距 / 圓角 / 陰影 --- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 20px rgba(74, 58, 44, 0.08);
  --shadow-card: 0 8px 30px rgba(74, 58, 44, 0.10);
  --shadow-press: 0 2px 8px rgba(74, 58, 44, 0.12);

  --container-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-coffee);
  line-height: 1.6;
  -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-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--color-coffee);
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header / 導覽列
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--container-w);
  margin: 0 auto;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.brand-text .zh {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-coffee);
}

.brand-text .en {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--color-tomato);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-coffee-soft);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-tomato-light);
  color: var(--color-tomato-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-coffee);
  padding: 6px;
}

/* ============================================================
   按鈕
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-tomato);
  color: var(--color-white);
  box-shadow: var(--shadow-press);
}
.btn-primary:hover { background: var(--color-tomato-dark); }

.btn-secondary {
  background: var(--color-olive-light);
  color: var(--color-olive-dark);
}
.btn-secondary:hover { background: #d7e0c5; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-line);
  color: var(--color-coffee);
}
.btn-outline:hover { border-color: var(--color-tomato); color: var(--color-tomato); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 18px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-butter);
  color: var(--color-coffee-soft);
  font-size: 13px;
  font-weight: 600;
}

.tag-olive { background: var(--color-olive-light); color: var(--color-olive-dark); }
.tag-tomato { background: var(--color-tomato-light); color: var(--color-tomato-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 80px;
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--color-coffee-soft);
  font-size: 13px;
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-coffee);
  margin-bottom: 6px;
  font-size: 15px;
}

.site-footer .footer-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  opacity: 0.8;
}

.site-footer .footer-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  opacity: 0.6;
}

/* ============================================================
   Utility
   ============================================================ */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-tomato);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.subtitle { color: var(--color-coffee-soft); font-size: 16px; }

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

.hidden { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, var(--color-butter) 25%, #efe4cd 37%, var(--color-butter) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

@media (max-width: 860px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-line);
    padding: 10px 20px 18px;
    gap: 4px;
  }
  .main-nav.open a { width: 100%; }
}
