/* ============================================================
   福連蔬菜綜合農場 - brand stylesheet
   Self-contained, zero framework dependency.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #faf8f4;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f7f4;
  --border: rgba(45, 58, 46, 0.08);
  --text: #2d3a2e;
  --muted: #6b7c6d;
  --accent: #3d6b4e;
  --accent-strong: #2d5a3e;
  --accent-soft: #4a7c59;
  --accent-tint: rgba(74, 124, 89, 0.1);
  --footer-bg: #1a241c;
  --footer-text: rgba(232, 239, 233, 0.6);
  --footer-dim: rgba(232, 239, 233, 0.35);
  --nav-bg: rgba(250, 248, 244, 0.88);
  --nav-bg-solid: rgba(250, 248, 244, 0.98);
  --nav-border: rgba(45, 58, 46, 0.08);
  --shadow-card: 0 1px 12px rgba(45, 58, 46, 0.08);
  --shadow-lift: 0 12px 40px rgba(45, 58, 46, 0.12);
  --hero-fallback: #2d5a3e;
  --menu-bg: rgba(250, 248, 244, 0.98);
  --line-green: #06c755;
  --line-green-hover: #05b54b;
  --radius-card: 16px;
  --radius-chip: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

#cropCalendar,
section[id] { scroll-margin-top: 88px; }

/* ── Skip link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-card);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ── Icon (shared SVG styling) ──────────────────────── */
.icon {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Logo mark ──────────────────────────────────────── */
.logo-mark circle { fill: none; stroke: var(--accent-soft); stroke-width: 1.5; }
.logo-mark .leaf  { fill: var(--accent-tint); stroke: var(--accent-soft); stroke-width: 1.2; }
.logo-mark .vein  { fill: none; stroke: var(--accent-soft); stroke-width: 1; stroke-linecap: round; }

.footer .logo-mark circle { stroke: var(--footer-dim); }
.footer .logo-mark .leaf  { fill: rgba(90, 158, 111, 0.2); stroke: rgba(90, 158, 111, 0.6); }
.footer .logo-mark .vein  { stroke: rgba(90, 158, 111, 0.6); }

/* ── Layout ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container--narrow { max-width: 768px; }

.section { padding-top: 80px; padding-bottom: 80px; }
.section--cream  { background: var(--bg); }
.section--white  { background: var(--bg-alt); }
.section--social { padding-top: 64px; padding-bottom: 64px; }

@media (min-width: 768px) {
  .section          { padding-top: 112px; padding-bottom: 112px; }
  .section--social  { padding-top: 80px;  padding-bottom: 80px; }
}

/* Section header (centered) */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .accent-line { margin-left: auto; margin-right: auto; margin-bottom: 24px; }
.section-header h2 { font-size: 26px; letter-spacing: -0.01em; font-weight: 700; }
.section-header p {
  color: var(--muted); font-size: 15px; max-width: 512px;
  margin: 16px auto 0;
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 30px; }
  .section-header p  { font-size: 16px; }
}

/* ── Accent line ────────────────────────────────────── */
.accent-line { width: 48px; height: 3px; background: var(--accent-soft); border-radius: 2px; }

/* ── Utility text ───────────────────────────────────── */
.text-muted { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) !important; }

.btn--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 107, 78, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero button variants (on dark overlay) */
.btn--light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-color: transparent;
}
.btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* LINE brand button */
.btn--line {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
}
.btn--line:hover {
  background: var(--line-green-hover);
  border-color: var(--line-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: var(--nav-bg-solid);
  box-shadow: var(--shadow-card);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 24px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.nav-links { display: none; align-items: center; gap: 20px; }
@media (min-width: 900px) { .nav-links { gap: 26px; } }
@media (min-width: 1080px) { .nav-links { gap: 32px; } }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-soft); }
.nav-links a.is-active { color: var(--accent-soft); font-weight: 600; }

.nav-burger {
  position: relative;
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-chip);
  transition: background 0.2s ease;
}
.nav-burger:hover {
  background: var(--accent-tint);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease, width 0.3s ease;
  position: relative;
  transform-origin: center;
}
.nav-burger span:nth-child(1) { margin-bottom: 5px; }
.nav-burger span:nth-child(2) { margin-bottom: 5px; }
.nav-burger span:nth-child(3) { width: 15px; }

/* When open (via .is-open class on toggle) */
.nav-burger.is-open span:nth-child(1) {
  margin-bottom: 0;
  position: absolute;
  transform: rotate(45deg);
  width: 22px;
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.is-open span:nth-child(3) {
  width: 22px;
  margin-bottom: 0;
  position: absolute;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-burger { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--menu-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 80px 24px 40px;
  visibility: hidden;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.mobile-menu-links a {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px 12px;
}
.mobile-menu-links a:hover {
  color: var(--accent-soft);
}
.mobile-menu-links a.mobile-menu-highlight {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  margin-top: 8px;
}
.mobile-menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 95;
}
.mobile-menu-close:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.08);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--hero-fallback);
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,36,28,0.42) 0%, rgba(26,36,28,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  max-width: 768px; margin: 0 auto; padding-top: 40px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin: 0 0 20px;
}
.hero h1 {
  font-size: 36px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: #fff; margin: 0 0 24px;
}
.hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.85); max-width: 576px; margin: 0 auto 40px;
}
.hero-phone-link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.hero-phone-link:hover {
  color: #a7f3d0;
  opacity: 0.95;
}
.hero-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
@media (min-width: 640px) {
  .hero h1  { font-size: 44px; }
  .hero-sub { font-size: 18px; }
  .hero-cta { flex-direction: row; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: block; /* it's an <a> */
}
.hero-scroll-pill {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4); border-radius: var(--radius-pill);
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll-dot {
  width: 4px; height: 10px; background: rgba(255,255,255,0.6); border-radius: 2px;
  animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Hero line break */
.hero-mobile-br { display: block; }
@media (min-width: 640px) { .hero-mobile-br { display: none; } }

/* ── Split (About) ──────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.split-text .accent-line { margin-bottom: 24px; }
.split-text h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.split-text p  { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.split-text p:last-child { margin-bottom: 0; }
.split-text a {
  color: var(--accent-soft); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.split-text a:hover { color: var(--accent-strong); }

@media (min-width: 768px) {
  .split         { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-text h2 { font-size: 30px; }
}

/* ── Media boxes ────────────────────────────────────── */
.media-box { border-radius: var(--radius-card); overflow: hidden; background: var(--surface-alt); }
.media-box img, .media-box iframe { width: 100%; height: 100%; display: block; border: 0; }
/* <picture> 只是容器，讓它完全不影響 img 的尺寸計算 */
.media-box picture, .hero-bg picture { display: block; width: 100%; height: 100%; }

.img-4-3   { aspect-ratio: 4 / 3;  object-fit: cover; width: 100%; }
.img-16-10 { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.img-4-5   { aspect-ratio: 4 / 5;  object-fit: cover; width: 100%; }
.img-card  { width: 100%; height: 192px; object-fit: cover; }
@media (min-width: 768px) { .img-card { height: 224px; } }

.env-img { transition: transform 0.6s var(--ease); will-change: transform; }
.env-img:hover { transform: scale(1.03); }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 28px 32px;
}

.icon-chip {
  width: 44px; height: 44px; border-radius: var(--radius-chip);
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-chip--sm { width: 40px; height: 40px; }

/* ── Values grid ────────────────────────────────────── */
.grid-values { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px)  { .grid-values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-values { grid-template-columns: 1fr 1fr 1fr; } }
.grid-values .card { display: flex; flex-direction: column; }
.grid-values .card .icon-chip { margin-bottom: 20px; }
.grid-values .card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.grid-values .card p  { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ── Environment gallery ────────────────────────────── */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
.gallery .media-box { height: 100%; min-height: 160px; }
.gallery .col-span-2 { grid-column: span 2; }
@media (max-width: 767px) { .gallery .media-box { min-height: 180px; } }

.grid-env { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
@media (min-width: 768px) { .grid-env { grid-template-columns: 1fr 1fr; } }
.grid-env .card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.grid-env .card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ── Products ───────────────────────────────────────── */
.grid-products { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px)  { .grid-products { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
a.product-card { text-decoration: none; color: inherit; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(74, 124, 89, 0.2);
}
.product-card .media-box { border-radius: 0; flex-shrink: 0; }
.product-card img { transition: transform 0.6s var(--ease); }
.product-card:hover img { transform: scale(1.05); }

.product-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.product-body p  { color: var(--muted); font-size: 14px; line-height: 1.75; flex: 1; }

.product-hint {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 500; color: var(--accent-soft);
  letter-spacing: 0.02em;
}

/* Trace banner */
.trace-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 24px 28px; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.trace-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(74, 124, 89, 0.2);
}
.trace-banner-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 4px;
}
.trace-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.trace-banner > div > p { font-size: 13px; color: var(--muted); }
.trace-banner-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent-soft);
  white-space: nowrap; transition: gap 0.2s ease;
}
.trace-banner:hover .trace-banner-cta { gap: 10px; }

/* ── Crop Seasonal Calendar ─────────────────────────── */
.crop-calendar-wrap {
  margin-top: 48px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.calendar-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.calendar-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.calendar-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.calendar-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-tint);
  border: 1px solid rgba(74, 124, 89, 0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-current-badge:hover {
  transform: translateY(-1px);
  background: rgba(74, 124, 89, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Month Filter Tabs */
.calendar-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 4px 14px;
  margin-top: -6px;
  scrollbar-width: thin;
}

.calendar-tab {
  flex-shrink: 0;
  padding: 8px 15px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-tab[data-month="all"] {
  font-weight: 600;
  margin-right: 4px;
}

.calendar-tab:hover {
  background: var(--accent-tint);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}

.calendar-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(61, 107, 78, 0.25);
}

.calendar-tab.is-this-month {
  position: relative;
}

.calendar-tab.is-this-month::after {
  content: '本月';
  position: absolute;
  top: -9px;
  right: -3px;
  font-size: 9px;
  background: #10b981;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
  pointer-events: none;
}

/* Summary info strip */
.calendar-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-chip);
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
}

.summary-label {
  font-weight: 600;
  color: var(--accent-soft);
  flex-shrink: 0;
}

.summary-content {
  color: var(--text);
  font-weight: 500;
}

/* Matrix Table */
.calendar-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: #ffffff;
  position: relative;
}

.calendar-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 800px;
}

.calendar-matrix-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.calendar-matrix-table th,
.calendar-matrix-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.calendar-matrix-table th:last-child,
.calendar-matrix-table td:last-child {
  border-right: none;
}

.calendar-matrix-table thead th {
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}

.calendar-matrix-table thead th.th-veg {
  text-align: left;
  padding-left: 16px;
}

.calendar-matrix-table thead th.th-period {
  text-align: left;
  padding-left: 14px;
}

/* Sticky column on horizontal scroll */
.sticky-col {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calendar-matrix-table thead th.sticky-col {
  background: var(--surface-alt);
  z-index: 3;
  border-left: 3px solid transparent;
}

.veg-name-col {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  padding-left: 14px !important;
}

.veg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.veg-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  vertical-align: middle;
}

.veg-link:hover {
  color: var(--accent);
}

/* Cell icon badges */
.cal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
  vertical-align: middle;
}

.cal-icon.in-season {
  background: rgba(16, 185, 129, 0.16);
  color: #065f46;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
}

.cal-icon.off-season {
  background: transparent;
  color: #cbd5e1;
}

.off-mark {
  width: 6px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  display: inline-block;
}

.td-period {
  text-align: left !important;
  white-space: nowrap;
  padding-left: 14px !important;
}

.tag-cycle {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.tag-cycle--all {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.tag-cycle--season {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

/* ── 8 Distinct Vegetable Color Schemes ───────────────── */
/* 1. 青江菜 - 翡翠綠 (Emerald) */
tr[data-vegid="choy"] .veg-dot { background: #10b981; }
tr[data-vegid="choy"] .cal-icon.in-season {
  background: rgba(16, 185, 129, 0.16);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.45);
}
tr[data-vegid="choy"]:hover .sticky-col {
  border-left-color: #10b981;
}

/* 2. 菠菜 - 墨森林綠 (Forest Pine) */
tr[data-vegid="spinach"] .veg-dot { background: #059669; }
tr[data-vegid="spinach"] .cal-icon.in-season {
  background: rgba(5, 150, 105, 0.16);
  color: #064e3b;
  border-color: rgba(5, 150, 105, 0.45);
}
tr[data-vegid="spinach"]:hover .sticky-col {
  border-left-color: #059669;
}

/* 3. 小白菜 - 湖水碧綠 (Teal Jade) */
tr[data-vegid="bokchoy"] .veg-dot { background: #0d9488; }
tr[data-vegid="bokchoy"] .cal-icon.in-season {
  background: rgba(13, 148, 136, 0.16);
  color: #134e4a;
  border-color: rgba(13, 148, 136, 0.45);
}
tr[data-vegid="bokchoy"]:hover .sticky-col {
  border-left-color: #0d9488;
}

/* 4. 不結球白菜 - 青翠草綠 (Grass Green) */
tr[data-vegid="pakchoi"] .veg-dot { background: #16a34a; }
tr[data-vegid="pakchoi"] .cal-icon.in-season {
  background: rgba(22, 163, 74, 0.16);
  color: #14532d;
  border-color: rgba(22, 163, 74, 0.45);
}
tr[data-vegid="pakchoi"]:hover .sticky-col {
  border-left-color: #16a34a;
}

/* 5. 芥藍 - 蔚藍青靛 (Ocean Indigo) */
tr[data-vegid="kailan"] .veg-dot { background: #0284c7; }
tr[data-vegid="kailan"] .cal-icon.in-season {
  background: rgba(2, 132, 199, 0.16);
  color: #0c4a6e;
  border-color: rgba(2, 132, 199, 0.45);
}
tr[data-vegid="kailan"]:hover .sticky-col {
  border-left-color: #0284c7;
}

/* 6. 茼蒿 - 暖陽秋菊橙 (Autumn Amber) */
tr[data-vegid="tonghao"] .veg-dot { background: #f59e0b; }
tr[data-vegid="tonghao"] .cal-icon.in-season {
  background: rgba(245, 158, 11, 0.20);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.55);
}
tr[data-vegid="tonghao"]:hover .sticky-col {
  border-left-color: #f59e0b;
}

/* 7. 空心菜 - 鮮竹萊姆綠 (Lime / Spring Bamboo) */
tr[data-vegid="water-spinach"] .veg-dot { background: #65a30d; }
tr[data-vegid="water-spinach"] .cal-icon.in-season {
  background: rgba(101, 163, 13, 0.20);
  color: #365314;
  border-color: rgba(101, 163, 13, 0.45);
}
tr[data-vegid="water-spinach"]:hover .sticky-col {
  border-left-color: #65a30d;
}

/* 8. 地瓜葉 - 雅緻紫薯紫 (Sweet Potato Violet) */
tr[data-vegid="sweet-potato-leaf"] .veg-dot { background: #9333ea; }
tr[data-vegid="sweet-potato-leaf"] .cal-icon.in-season {
  background: rgba(147, 51, 234, 0.16);
  color: #581c87;
  border-color: rgba(147, 51, 234, 0.45);
}
tr[data-vegid="sweet-potato-leaf"]:hover .sticky-col {
  border-left-color: #9333ea;
}

/* ── Interactive Crosshair Hover Effects (Row + Col) ──── */
/* Horizontal Row Hover */
.calendar-matrix-table tbody tr:hover {
  background: rgba(74, 124, 89, 0.05);
}

.calendar-matrix-table tbody tr:hover .sticky-col {
  background: #f8fafc;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

/* Vertical Column Hover */
.calendar-matrix-table td.col-hover,
.calendar-matrix-table th.col-hover {
  background: rgba(74, 124, 89, 0.08) !important;
}

.calendar-matrix-table thead th.col-hover {
  color: var(--accent-strong) !important;
  font-weight: 700;
}

/* Intersection Cell Hover */
.calendar-matrix-table tbody td.in-season:hover {
  background: rgba(74, 124, 89, 0.16) !important;
  cursor: pointer;
}

.calendar-matrix-table tbody td.in-season:hover .cal-icon {
  transform: scale(1.24);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* Column Highlight States */
.calendar-matrix-table td.col-current,
.calendar-matrix-table th.col-current {
  background: rgba(16, 185, 129, 0.07);
}

.calendar-matrix-table th.col-current {
  color: var(--accent-strong);
  font-weight: 700;
}

.calendar-matrix-table tr.is-highlight td {
  background-color: rgba(74, 124, 89, 0.04);
}

.calendar-matrix-table tr.is-dimmed {
  opacity: 0.28;
}

/* Legend */
.calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-icon {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.legend-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  color: var(--accent-strong);
  font-weight: 600;
}

.badge-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.legend-source {
  margin-left: auto;
  font-size: 11px;
}

@media (max-width: 640px) {
  .crop-calendar-wrap {
    padding: 20px 16px;
  }
  .legend-source {
    margin-left: 0;
    width: 100%;
  }
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(74, 124, 89, 0.35);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(61, 107, 78, 0.08);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--surface-alt);
}

.faq-question {
  flex: 1;
  line-height: 1.5;
}

/* Round +/- Toggle Icon */
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.3s ease;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent-soft);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s ease, background 0.3s ease;
}

/* Horizontal line */
.faq-icon::before {
  width: 12px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  width: 2px;
  height: 12px;
}

/* When details is open */
.faq-item[open] .faq-icon {
  background: var(--accent);
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: #ffffff;
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: scaleY(0);
}

/* Smooth Accordion Animation */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

.faq-inner p {
  padding: 18px 24px 24px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.faq-inner p strong {
  color: var(--text);
}

/* ── Contact ────────────────────────────────────────── */
.layout-contact { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 768px) { .layout-contact { grid-template-columns: 1fr 1fr; gap: 64px; } }

.contact-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 24px; }
@media (min-width: 768px) { .contact-title { font-size: 30px; } }

.contact-desc { color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; }
.info-row p { font-size: 14px; }
.info-row .label { font-weight: 500; margin-bottom: 2px; }

.info-link {
  color: var(--accent-soft); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.info-link:hover { color: var(--accent-strong); }

.map-box {
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface-alt); min-height: 320px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.map-box iframe { border: 0; display: block; min-height: 320px; width: 100%; }

.map-footer {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  border: 1px solid rgba(74, 124, 89, 0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.map-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.map-note { color: var(--muted); font-size: 12px; margin: 0; }

/* ── Social ─────────────────────────────────────────── */
.social-row { display: flex; justify-content: center; gap: 20px; }
.social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.social-btn:hover { transform: scale(1.1); background: var(--accent); color: #fff; }
.social-btn svg { display: block; flex-shrink: 0; }

/* ── FAB stack (LINE + back to top) ─────────────────── */
.fab-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, opacity 0.3s ease;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.fab:active { transform: translateY(0); }

.fab--line {
  background: var(--line-green); color: #fff;
}
.fab--line:hover { background: var(--line-green-hover); }

.fab--top {
  background: var(--surface); color: var(--accent-soft);
  opacity: 0; pointer-events: none; transform: translateY(12px);
}
.fab--top.is-visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.fab--top:hover { background: var(--accent); color: #fff; }

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--footer-bg); padding: 40px 0; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 16px;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; flex-wrap: wrap; } }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-text { font-size: 14px; color: var(--footer-text); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center;
}
.footer-links a {
  font-size: 13px; color: var(--footer-text);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent-soft); }
.footer-copy { font-size: 12px; color: var(--footer-dim); margin: 0; width: 100%; text-align: center; }
@media (min-width: 768px) { .footer-copy { text-align: left; width: auto; } }

/* ── Scroll reveal (JS-gated) ───────────────────────── */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-dot { animation: none; }
  .env-img, .product-card, .product-card img,
  .btn, .social-btn, .nav, .fab, .trace-banner { transition: none !important; transform: none !important; }
  .fab--top.is-visible { transform: none !important; }
}