/* ===== CSS Variables ===== */
:root {
  --green-deep: #0a3d0a;
  --green-dark: #14532d;
  --green-mid: #1e7a3e;
  --green-light: #4ade80;
  --green-pale: #dcfce7;
  --red: #e11d48;
  --red-deep: #9f1239;
  --red-light: #fb7185;
  --yellow: #facc15;
  --yellow-deep: #ca8a04;
  --cream: #fffef8;
  --warm-white: #fffbf3;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --ink-mute: #777;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Navbar ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,251,243,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255,251,243,0.95);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-weight: 900; font-size: 22px;
  color: var(--green-dark);
  letter-spacing: 1px;
}
.nav-links {
  display: flex; gap: 36px;
}
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
#menu-toggle {
  display: none; background: none; border: none;
  font-size: 28px; color: var(--green-dark);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 32px 16px;
  gap: 16px;
}
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 0;
}

/* ===== Hero ===== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,61,10,0.55) 0%, rgba(159,18,57,0.35) 50%, rgba(10,61,10,0.75) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: white;
  padding: 0 24px;
  max-width: 800px;
  animation: heroFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #fff;
}
.hero-content h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}
.hero-content h1 span {
  color: var(--red-light);
  font-style: italic;
}
.hero-content p {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  font-weight: 300;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: white;
  color: var(--green-dark);
  font-size: 16px; font-weight: 700;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.btn-primary i { font-size: 18px; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 12px; letter-spacing: 3px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.7));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Section Header ===== */
.section-header {
  max-width: 720px; margin: 0 auto 64px;
  text-align: center;
  padding: 0 24px;
}
.section-header.light { color: white; }
.section-header.light p { color: rgba(255,255,255,0.85); }
.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 64px; font-weight: 700; font-style: italic;
  color: var(--green-light);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -20px;
}
.section-header.light .section-num { color: var(--red-light); opacity: 0.5; }
.section-header h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.section-header.light h2 { color: white; }
.section-header p {
  font-size: 17px; line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ===== Varieties Section ===== */
#varieties {
  padding: 120px 32px;
  max-width: 1280px; margin: 0 auto;
}
.variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.variety-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.variety-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.variety-card:hover .card-image img {
  transform: scale(1.08);
}
.card-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 12px; font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 1px;
}
.variety-card[data-color="red"] .card-badge { color: var(--red); }
.variety-card[data-color="yellow"] .card-badge { color: var(--yellow-deep); }
.card-body { padding: 24px; }
.card-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--ink-mute);
  margin-bottom: 12px;
}
.card-meta span {
  display: flex; align-items: center; gap: 4px;
}
.card-meta i { font-size: 14px; }
.card-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px; font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.variety-en {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-style: italic;
  color: var(--red);
  margin-bottom: 12px;
}
.variety-desc {
  font-size: 14px; line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.variety-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  padding: 4px 12px;
  background: var(--green-pale);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--green-dark);
}
.variety-card[data-color="yellow"] .tag {
  background: #fef9c3; color: var(--yellow-deep);
}
.variety-card[data-color="red"] .tag {
  background: #ffe4e6; color: var(--red-deep);
}

/* ===== Knowledge Section ===== */
#knowledge {
  padding: 120px 32px;
  background: var(--warm-white);
}
.knowledge-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}
.knowledge-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.knowledge-card:hover {
  box-shadow: var(--shadow-md);
}
.knowledge-card.highlight {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white;
}
.knowledge-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--green-dark);
  margin-bottom: 20px;
}
.knowledge-card.highlight .knowledge-icon {
  background: rgba(255,255,255,0.15);
  color: var(--green-light);
}
.knowledge-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.knowledge-card.highlight h3 { color: white; }
.knowledge-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px; line-height: 1.7;
  color: var(--ink-soft);
}
.knowledge-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-light);
}
.knowledge-card.highlight ul li { color: rgba(255,255,255,0.85); }
.knowledge-card.highlight ul li::before { background: var(--red-light); }
.knowledge-card ul li strong { color: var(--green-dark); font-weight: 700; }
.knowledge-card.highlight ul li strong { color: white; }

/* Nutrition bars */
.nutrition-bars {
  margin-bottom: 20px;
}
.nutri-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.nutri-row span:first-child {
  width: 70px; font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.bar-bg {
  flex: 1; height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-light), var(--red));
  border-radius: 100px;
  transition: width 1s ease;
}
.nutri-val {
  width: 70px; text-align: right;
  font-weight: 600; color: white;
  font-size: 12px;
}
.nutri-note {
  font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}

/* ===== Origins Section ===== */
#origins {
  position: relative;
  overflow: hidden;
}
.origins-bg {
  position: absolute; inset: 0; z-index: 0;
}
.origins-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.origins-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,61,10,0.92) 0%, rgba(20,83,45,0.88) 50%, rgba(159,18,57,0.85) 100%);
}
.origins-content {
  position: relative; z-index: 1;
  padding: 120px 32px;
}
.origin-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.origin-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 32px 28px;
  transition: background 0.3s, transform 0.3s;
}
.origin-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.origin-flag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--red);
  border-radius: 6px;
  font-size: 11px; font-weight: 800;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.origin-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px; font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.origin-card p {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.origin-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.origin-stat span {
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.origin-stat strong {
  font-size: 20px; color: var(--green-light);
  font-family: 'Playfair Display', serif;
}

/* ===== Facts Section ===== */
#facts {
  padding: 120px 32px;
  max-width: 1100px; margin: 0 auto;
}
.facts-container {
  display: flex; flex-direction: column;
  gap: 0;
}
.fact-item {
  display: flex; gap: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  transition: padding-left 0.3s ease;
}
.fact-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.fact-item:hover {
  padding-left: 16px;
}
.fact-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700; font-style: italic;
  color: var(--green-light);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 80px;
}
.fact-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.fact-content p {
  font-size: 15px; line-height: 1.8;
  color: var(--ink-soft);
}
.fact-content strong {
  color: var(--red);
  font-weight: 700;
}

/* ===== Footer ===== */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.8);
  padding: 60px 32px 24px;
}
.footer-content {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-brand h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700;
  color: white;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-links {
  display: flex; gap: 64px;
}
.footer-col h4 {
  font-size: 14px; font-weight: 700;
  color: var(--green-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  #menu-toggle { display: block; }
  .mobile-menu.open { display: flex; }

  .hero-content h1 { letter-spacing: 2px; }
  .hero-content p { font-size: 16px; }

  .section-header { margin-bottom: 48px; }
  #varieties, #knowledge, #facts { padding: 80px 20px; }
  .origins-content { padding: 80px 20px; }

  .variety-grid, .knowledge-grid, .origin-grid {
    grid-template-columns: 1fr;
  }

  .fact-item { flex-direction: column; gap: 12px; padding: 32px 0; }
  .fact-number { font-size: 36px; min-width: auto; }

  .footer-content { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}
