/* 誠農食堂 fuki.tw
   ⚠️ 配色與字體不是重新設計的，是 2026-09-01 從 fuki.readdy.co 實測 computed style 扒下來的真實數值。
   Isa 要的是「原本網站的效果」，不是另一套視覺。改品牌色只改 :root。 */

:root {
  /* primitive — 全部取自舊站實測 */
  --green-900:#1A3008;   /* 深綠：按鈕 hover、深色底 */
  --green-700:#2D5016;   /* 主綠：標題強調、按鈕 */
  --green-500:#5A8A2E;   /* 中綠：次要強調 */
  --green-200:#A8D5A2;   /* 淺綠：裝飾 */
  --green-050:#E8F5D8;   /* 淺綠底：標籤、柔和區塊 */

  --cream-000:#FFFFFF;
  --cream-050:#FAF9F6;   /* 主要區塊底 */
  --cream-100:#FAF7F2;   /* 媒體報導區底 */
  --cream-200:#F5F0E8;   /* 「誠農的底氣」區底 */
  --cream-300:#E0D8C8;   /* 分隔線／米棕 */

  --ink:#1F1B16;
  --ink-2:#4B5563;
  --ink-3:#6B7280;

  /* semantic */
  --bg:var(--cream-050); --surface:var(--cream-000); --band:var(--cream-200);
  --band-alt:var(--cream-100); --rule:var(--cream-300);
  --accent:var(--green-700); --accent-dark:var(--green-900); --accent-ink:#fff;

  --wrap:1200px; --prose:36rem;
  --f-title:"Noto Serif TC",Georgia,serif;
  --f-body:"Noto Sans TC",ui-sans-serif,system-ui,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; margin: 0; line-height: 1.35; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 頁首：透明起始，捲動後變白（沿用舊站行為） ---------- */
.site-head {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50; height: 80px;
  background: transparent; transition: background .5s, box-shadow .5s;
}
.site-head.solid { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.bar { max-width: var(--wrap); margin: 0 auto; height: 80px; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; }
.brand { font-family: var(--f-title); font-weight: 700; font-size: 1.2rem; text-decoration: none;
  color: #fff; transition: color .4s; }
.nav { display: flex; gap: 26px; flex: 1; font-size: .92rem; }
.nav a { text-decoration: none; color: rgba(255,255,255,.9); transition: color .4s; padding: 4px 0; }
.site-head.solid .brand { color: var(--green-900); }
.site-head.solid .nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.site-head.solid .nav a:hover, .site-head.solid .nav a[aria-current="page"] { color: var(--accent); }
.cta { font-size: .88rem; font-weight: 700; text-decoration: none; border-radius: 4px;
  background: var(--accent); color: #fff; padding: 10px 20px; white-space: nowrap; transition: background .25s; }
.cta:hover { background: var(--accent-dark); }
/* 沒有 hero 的內頁，頁首直接是實心的 */
.no-hero .site-head { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.no-hero .brand { color: var(--green-900); }
.no-hero .nav a { color: var(--ink-2); }

/* ---------- Hero：滿版背景照 ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; color: #fff; padding: 120px 24px 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,48,8,.55) 0%, rgba(26,48,8,.42) 45%, rgba(26,48,8,.72) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--wrap); width: 100%;
  margin: 0 auto; animation: rise 1s ease-out both; }
.hero-inner > * { max-width: 680px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { color: var(--green-200); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.4; margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero .lede { color: rgba(255,255,255,.92); margin: 0; font-size: 1.06rem; }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .3em; color: rgba(255,255,255,.7); z-index: 1; }

/* ---------- 區塊 ---------- */
.section { padding: 80px 24px; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section.band { background: var(--band); }
.section.band-alt { background: var(--band-alt); }
.section.plain { background: var(--cream-000); }
.page-head { padding: 152px 24px 56px; background: var(--cream-200); text-align: center; }
.page-head > * { max-width: 780px; margin-left: auto; margin-right: auto; }

.eyebrow, .kicker { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 10px; }
h3 { font-size: 1.06rem; margin-bottom: 8px; }
.lede { font-size: 1.02rem; color: var(--ink-2); max-width: var(--prose); margin: 18px 0 0; }
.page-head .lede { margin-left: auto; margin-right: auto; }
.prose { max-width: var(--prose); color: var(--ink-2); }
.prose p { margin: 0 0 18px; }
.role { font-family: var(--f-mono); font-size: .82rem; color: var(--accent); margin: 4px 0 16px; }
.hours { font-family: var(--f-mono); font-size: .84rem; color: var(--ink-3); margin-top: 18px; }
.season { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }

/* 圖文並排 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > figure { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px;
  box-shadow: 0 14px 34px rgba(26,48,8,.14); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: .94rem;
  padding: 13px 28px; border-radius: 4px; border: 1px solid currentColor; transition: all .25s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-primary, .btn-line { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn { border-color: rgba(255,255,255,.85); color: #fff; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); }

/* 數據帶 */
.band.stats, .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px; padding: 46px 24px; background: var(--green-900); color: #fff; max-width: none; }
.stats-inner { max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; text-align: center; }
.stat .n { display: block; font-family: var(--f-title); font-size: 2.2rem; color: var(--green-200); }
.stat .l { display: block; font-size: .86rem; opacity: .82; }

/* 底氣區 */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 34px; }
.cred-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--accent); margin: 0 0 14px; }
.cred-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cred-grid li { font-size: .95rem; line-height: 1.6; padding-left: 18px; position: relative; }
.cred-grid li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green-500); }
.cred-grid li span { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); }
.cred-close { margin-top: 42px; font-family: var(--f-title); font-size: 1.12rem; color: var(--green-900);
  max-width: 42rem; border-left: 3px solid var(--green-500); padding-left: 22px; }

/* 卡片網格 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-top: 34px; }
.feature-grid > div { background: var(--cream-000); padding: 30px; border-radius: 6px;
  box-shadow: 0 2px 14px rgba(26,48,8,.06); transition: transform .25s, box-shadow .25s; }
.feature-grid > div:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,48,8,.11); }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* 時間軸 */
.timeline { list-style: none; margin: 36px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--cream-300); }
.timeline > li { padding: 0 0 34px 26px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green-500); border: 3px solid var(--bg); }
.timeline .period { font-family: var(--f-mono); font-size: .84rem; color: var(--accent); margin: 0 0 4px; }
.timeline ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; }
.timeline ul li { margin-bottom: 8px; }

/* 消息 */
.news-list, .press-list { list-style: none; margin: 30px 0 0; padding: 0; }
.news-list li { background: var(--cream-000); border-radius: 6px; padding: 22px 26px; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(26,48,8,.05); }
.press-list li { background: var(--cream-000); border-radius: 6px; padding: 28px 30px; margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(26,48,8,.05); }
.date, .outlet { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); margin-right: 12px; }
.outlet { color: var(--accent); }
.press-list h2 { font-size: 1.12rem; margin: 10px 0; }
.news-list a, .press-list a, .more { color: var(--green-900); text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--green-500); }
.more { display: inline-block; margin-top: 26px; font-size: .92rem; }

/* 待確認提示 */
.pending-note { margin: 26px 0 0; padding: 15px 20px; background: var(--green-050);
  border-left: 3px solid var(--green-500); color: var(--green-900); font-size: .9rem;
  border-radius: 0 4px 4px 0; max-width: 46rem; }

/* CTA 帶：背景照 + 深綠遮罩 */
.cta-band { position: relative; padding: 96px 24px; text-align: center; color: #fff; overflow: hidden; }
.cta-band .hero-bg::after { background: rgba(26,48,8,.82); }
.cta-band > *:not(.hero-bg) { position: relative; z-index: 1; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .actions { justify-content: center; }
.cta-band .btn { border-color: rgba(255,255,255,.85); color: #fff; }
.cta-band .btn-line { background: var(--green-500); border-color: var(--green-500); }
.cta-band .hours { color: rgba(255,255,255,.7); }

/* 頁尾 */
.site-foot { background: var(--green-900); color: rgba(255,255,255,.82); }
.foot-grid { max-width: var(--wrap); margin: 0 auto; padding: 60px 24px 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.foot-name { font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; color: #fff; margin: 0 0 10px; }
.site-foot p { font-size: .9rem; margin: 0 0 6px; }
.site-foot a { color: var(--green-200); }
.foot-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em;
  color: var(--green-200); margin: 18px 0 4px; }
.foot-label:first-child { margin-top: 0; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 44px;
  font-family: var(--f-mono); font-size: .74rem; color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev > figure { order: 0; }
  .nav { display: none; }
  .section { padding: 56px 20px; }
  .page-head { padding-top: 128px; }
}

/* ---------- 手機選單 ---------- */
.burger { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer;
  padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .2s; }
.site-head.solid .burger span, .no-hero .burger span { background: var(--green-900); }
.burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- FAQ（GEO 主力區） ---------- */
.faq { margin-top: 30px; max-width: 780px; }
.faq details { background: var(--cream-000); border-radius: 6px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(26,48,8,.05); }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { padding-bottom: 6px; }
.faq p { margin: 0; padding: 0 24px 20px; color: var(--ink-2); font-size: .95rem; }

@media (max-width: 820px) {
  .burger { display: flex; }
  .bar { gap: 12px; }
  .cta { display: none; }
  .brand { flex: 1; }
  .mobile-nav { display: flex; flex-direction: column; position: fixed; inset: 80px 0 0;
    background: var(--cream-050); z-index: 49; padding: 20px 24px; gap: 4px; overflow-y: auto; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 16px 4px; text-decoration: none; font-size: 1.05rem;
    border-bottom: 1px solid var(--rule); color: var(--green-900); }
  .mobile-nav .m-line { margin-top: 18px; background: var(--accent); color: #fff; border: 0;
    text-align: center; border-radius: 4px; font-weight: 700; padding: 15px; }
}

/* 服務範圍與預約流程區塊 */
.area-note { margin-top: 26px; padding: 18px 22px; background: var(--green-050);
  border-left: 3px solid var(--green-500); border-radius: 0 4px 4px 0; }
.area-label, .book-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--accent); margin: 0 0 6px; }
.area-main { margin: 0; font-weight: 700; color: var(--green-900); }
.area-terms { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }
.book-note { margin-top: 24px; }
.steps { counter-reset: s; list-style: none; margin: 0 0 22px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px;
  color: var(--ink-2); font-size: .95rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--f-mono); font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.steps strong { color: var(--ink); }
.wide-photo { margin: 0 0 34px; }
.wide-photo img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 6px; }


/* ---------- 捲動進場（舊站的主要效果） ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none;
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.reveal .split > *, .reveal .feature-grid > div, .reveal .faq details,
.reveal .cred-grid > div, .reveal .stat, .reveal .steps li {
  opacity: 0; transform: translateY(16px); }
.reveal.in .split > *, .reveal.in .feature-grid > div, .reveal.in .faq details,
.reveal.in .cred-grid > div, .reveal.in .stat, .reveal.in .steps li {
  opacity: 1; transform: none;
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in .split > *:nth-child(2) { transition-delay: .12s; }
.reveal.in .feature-grid > div:nth-child(2), .reveal.in .cred-grid > div:nth-child(2),
.reveal.in .stat:nth-child(2), .reveal.in .faq details:nth-child(2) { transition-delay: .07s; }
.reveal.in .feature-grid > div:nth-child(3), .reveal.in .cred-grid > div:nth-child(3),
.reveal.in .stat:nth-child(3), .reveal.in .faq details:nth-child(3) { transition-delay: .14s; }
.reveal.in .feature-grid > div:nth-child(4), .reveal.in .stat:nth-child(4),
.reveal.in .faq details:nth-child(4) { transition-delay: .21s; }
.reveal.in .feature-grid > div:nth-child(5), .reveal.in .stat:nth-child(5) { transition-delay: .28s; }
.reveal.in .feature-grid > div:nth-child(6), .reveal.in .stat:nth-child(6) { transition-delay: .35s; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); }
                 50% { transform: translateX(-50%) translateY(7px); } }

/* ---------- 頁首 logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- 右下角常駐 LINE 按鈕 ---------- */
.float-line { position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--green-500); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(26,48,8,.3);
  transition: transform .25s, background .25s; }
.float-line:hover { background: var(--green-900); transform: translateY(-2px); }
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: #A8F0A0;
  box-shadow: 0 0 0 0 rgba(168,240,160,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(168,240,160,0); }
                   100% { box-shadow: 0 0 0 0 rgba(168,240,160,0); } }
@media (prefers-reduced-motion: reduce) { .fl-dot, .scroll-hint { animation: none; } }
@media (max-width: 560px) {
  .float-line { right: 14px; bottom: 14px; padding: 13px 16px; }
  .fl-text { display: none; }
  .fl-dot { width: 10px; height: 10px; }
}
