/* ================================================================
   黔食民食品 - 品牌官网全局样式
   设计系统：质朴·自然·温度 | 原生态·地道味·健康源
   ================================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* 色彩系统 */
  --cream: oklch(96% 0.012 85);
  --cream-deep: oklch(92% 0.025 82);
  --earth: oklch(42% 0.075 60);
  --earth-light: oklch(55% 0.06 65);
  --earth-deep: oklch(32% 0.07 55);
  --forest: oklch(43% 0.065 145);
  --forest-light: oklch(58% 0.055 142);
  --forest-deep: oklch(33% 0.06 140);
  --clay: oklch(50% 0.17 22);
  --clay-light: oklch(62% 0.14 25);
  --wheat: oklch(88% 0.045 85);
  --wheat-light: oklch(93% 0.03 86);
  --ink: oklch(22% 0.012 260);
  --ink-secondary: oklch(38% 0.01 260);
  --stone: oklch(55% 0.01 80);
  --stone-light: oklch(72% 0.008 82);
  --indigo: oklch(33% 0.065 262);
  --indigo-light: oklch(48% 0.05 260);
  --surface: oklch(99% 0.005 88);

  /* 间距（4pt grid） */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* 字体 */
  --font-display: Georgia, 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

  /* 字号 */
  --text-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  --text-md: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.4rem + 0.8vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.7rem + 1.2vw, 3rem);
  --text-4xl: clamp(2.5rem, 2rem + 1.8vw, 4rem);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px oklch(22% 0.01 260 / 0.06);
  --shadow-md: 0 4px 12px oklch(22% 0.01 260 / 0.08);
  --shadow-lg: 0 8px 30px oklch(22% 0.01 260 / 0.1);
  --shadow-xl: 0 16px 48px oklch(22% 0.01 260 / 0.12);

  /* 过渡 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 布局 */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--earth-deep);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-md); }

a {
  color: var(--earth);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-quart);
}
a:hover { color: var(--clay); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.section-padding {
  padding: var(--space-5xl) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: oklch(97% 0.01 85 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(90% 0.015 85 / 0.6);
  transition: background var(--duration-normal) var(--ease-out-quart),
              box-shadow var(--duration-normal) var(--ease-out-quart);
}

.nav.scrolled {
  background: oklch(97% 0.01 85 / 0.95);
  box-shadow: var(--shadow-md);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--earth-deep);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--earth);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--earth);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero / Banner --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    175deg,
    oklch(94% 0.025 82) 0%,
    oklch(90% 0.04 80) 30%,
    oklch(85% 0.05 100) 60%,
    oklch(90% 0.04 80) 100%
  );
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, oklch(48% 0.08 145 / 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, oklch(55% 0.06 65 / 0.06), transparent);
  pointer-events: none;
}

/* 装饰性SVG山形 */
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  pointer-events: none;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: oklch(95% 0.02 85 / 0.9);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--earth);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--earth-deep);
}

.hero h1 em {
  font-style: normal;
  color: var(--clay);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: oklch(55% 0.17 22 / 0.2);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--earth);
  color: oklch(98% 0.005 85);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--earth-deep);
  color: oklch(98% 0.005 85);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--earth);
  box-shadow: inset 0 0 0 2px var(--earth);
}
.btn-outline:hover {
  background: var(--earth);
  color: oklch(98% 0.005 85);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--earth);
}
.btn-ghost:hover {
  background: oklch(50% 0.06 65 / 0.08);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-sm);
  position: relative;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--clay-light);
  vertical-align: middle;
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--stone);
  font-size: var(--text-md);
}

/* --- Brand Values (三列) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.value-card {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--earth), var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.value-card:hover::before { transform: scaleX(1); }

.value-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.value-icon.earth { background: oklch(48% 0.06 65 / 0.12); }
.value-icon.forest { background: oklch(48% 0.06 145 / 0.12); }
.value-icon.clay { background: oklch(52% 0.16 22 / 0.1); }

.value-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--earth-deep);
}

.value-card p {
  color: var(--stone);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Product Section --- */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease-out-quart);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.product-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-image-placeholder.pepper {
  background: linear-gradient(135deg, oklch(45% 0.15 20 / 0.15), oklch(55% 0.1 30 / 0.1));
}
.product-image-placeholder.bacon {
  background: linear-gradient(135deg, oklch(40% 0.1 45 / 0.15), oklch(50% 0.08 55 / 0.1));
}
.product-image-placeholder.mushroom {
  background: linear-gradient(135deg, oklch(45% 0.08 140 / 0.15), oklch(55% 0.06 130 / 0.1));
}
.product-image-placeholder.grain {
  background: linear-gradient(135deg, oklch(50% 0.06 85 / 0.15), oklch(60% 0.04 80 / 0.1));
}
.product-image-placeholder.gift {
  background: linear-gradient(135deg, oklch(45% 0.12 20 / 0.15), oklch(35% 0.06 260 / 0.1));
}

.product-image .tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 12px;
  background: var(--clay);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.product-info {
  padding: var(--space-lg);
}

.product-info h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}

.product-info .desc {
  font-size: var(--text-sm);
  color: var(--stone);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--wheat-light);
  font-size: var(--text-xs);
  color: var(--stone-light);
}

/* --- Origin Story (产地故事) --- */
.origin-section {
  background: var(--earth-deep);
  color: oklch(92% 0.015 85);
  position: relative;
  overflow: hidden;
}

.origin-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 70%, oklch(48% 0.07 60 / 0.3), transparent),
    radial-gradient(ellipse 40% 40% at 70% 30%, oklch(38% 0.06 140 / 0.2), transparent);
  pointer-events: none;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.origin-text h2 {
  color: oklch(94% 0.02 85);
  margin-bottom: var(--space-lg);
}

.origin-text p {
  color: oklch(85% 0.015 85);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.origin-visual {
  aspect-ratio: 4/3;
  background: oklch(40% 0.04 60 / 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Partners Section --- */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-xl);
}

.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-quart);
  text-decoration: none;
}

.partner-logo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.partner-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: oklch(50% 0.03 260 / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--stone-light);
}

.partner-logo-card span {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  font-weight: 500;
}

/* --- News Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease-out-quart);
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, oklch(65% 0.04 85 / 0.2), oklch(55% 0.06 145 / 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-body {
  padding: var(--space-lg);
}

.news-body .date {
  font-size: var(--text-xs);
  color: var(--stone-light);
  margin-bottom: var(--space-sm);
}

.news-body h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.news-body p {
  font-size: var(--text-sm);
  color: var(--stone);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--wheat);
}
.contact-info-list li:last-child { border-bottom: none; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-icon.map { background: oklch(45% 0.06 145 / 0.12); }
.contact-icon.phone { background: oklch(50% 0.06 65 / 0.12); }
.contact-icon.email { background: oklch(35% 0.06 260 / 0.1); }

.contact-info-text h4 {
  font-size: var(--text-sm);
  color: var(--stone);
  margin-bottom: var(--space-xs);
}

.contact-info-text p {
  font-size: var(--text-base);
  color: var(--ink);
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 2px solid var(--wheat);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  transition: all var(--duration-fast) var(--ease-out-quart);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--earth);
  background: white;
  box-shadow: 0 0 0 4px oklch(48% 0.06 65 / 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* --- Footer --- */
.footer {
  background: var(--earth-deep);
  color: oklch(85% 0.015 85);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

.footer-brand img {
  height: 36px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: oklch(80% 0.015 85);
  line-height: 1.7;
}

.footer-links h4 {
  color: oklch(92% 0.02 85);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: var(--space-sm); }

.footer-links a {
  color: oklch(78% 0.015 85);
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}

.footer-links a:hover { color: oklch(94% 0.02 85); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid oklch(55% 0.03 60 / 0.2);
  text-align: center;
  font-size: var(--text-xs);
  color: oklch(70% 0.015 80);
}

/* --- Page Banner (内部页通用) --- */
.page-banner {
  background: linear-gradient(
    175deg,
    oklch(88% 0.04 80) 0%,
    oklch(82% 0.05 100) 50%,
    oklch(88% 0.04 80) 100%
  );
  padding: calc(var(--nav-height) + var(--space-5xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-sm);
}

.page-banner p {
  position: relative;
  z-index: 1;
  color: var(--stone);
  font-size: var(--text-md);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: var(--text-xs);
  color: var(--stone-light);
}

.breadcrumb a { color: var(--stone); }
.breadcrumb span { color: var(--earth); }

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.filter-tab {
  padding: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 2px solid var(--wheat);
  border-radius: 100px;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-quart);
}

.filter-tab:hover {
  border-color: var(--earth);
  color: var(--earth);
}

.filter-tab.active {
  background: var(--earth);
  border-color: var(--earth);
  color: white;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--wheat);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 4px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--earth);
  border: 2px solid var(--cream);
}

.timeline-year {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clay);
  margin-bottom: var(--space-xs);
}

.timeline-item h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--stone);
}

/* --- Cert Grid --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.cert-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal);
}

.cert-card:hover { box-shadow: var(--shadow-md); }

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cert-card h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.cert-card p {
  font-size: var(--text-xs);
  color: var(--stone-light);
}

/* --- Partners Page Specific --- */
.partners-intro {
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
  text-align: center;
  color: var(--stone);
  font-size: var(--text-md);
  line-height: 1.8;
}

.partners-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.partners-cta {
  text-align: center;
  padding: var(--space-4xl) 0;
  background: oklch(48% 0.06 65 / 0.05);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4xl);
}

.partners-cta h3 {
  margin-bottom: var(--space-lg);
}

/* --- Story Page --- */
.story-hero-image {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, oklch(40% 0.06 60 / 0.15), oklch(50% 0.07 80 / 0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content h2 {
  margin-bottom: var(--space-lg);
  margin-top: var(--space-4xl);
}

.story-content h2:first-child { margin-top: 0; }

.story-content p {
  line-height: 2;
  color: var(--ink-secondary);
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
}

.story-quote {
  padding: var(--space-2xl) var(--space-3xl);
  background: var(--surface);
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-3xl) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--earth-deep);
}

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.product-gallery-main {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: var(--space-md);
}

.product-info-detail h1 {
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clay);
  margin-bottom: var(--space-lg);
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
}

.product-specs th,
.product-specs td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-size: var(--text-sm);
}

.product-specs th {
  font-weight: 600;
  color: var(--stone);
  width: 120px;
  white-space: nowrap;
}

.product-specs tr {
  border-bottom: 1px solid var(--wheat-light);
}
.product-specs tr:last-child { border-bottom: none; }

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-4xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.pagination a {
  background: var(--surface);
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.pagination a:hover {
  background: var(--earth);
  color: white;
}

.pagination .current {
  background: var(--earth);
  color: white;
  box-shadow: var(--shadow-md);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out-quart);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: var(--forest); color: white; }
.toast.error { background: var(--clay); color: white; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .origin-grid,
  .contact-grid,
  .product-detail { grid-template-columns: 1fr; gap: var(--space-3xl); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container { padding: 0 var(--space-lg); }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transition: right var(--duration-slow) var(--ease-out-expo);
    z-index: 1000;
  }

  .nav-menu.open { right: 0; }

  .nav-menu a {
    font-size: var(--text-md);
    padding: var(--space-sm) 0;
  }

  .nav-toggle { display: flex; }

  .values-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }

  .section-padding { padding: var(--space-3xl) 0; }

  .hero h1 { font-size: var(--text-2xl); }

  .filter-tabs { gap: var(--space-xs); }
  .filter-tab { padding: 0.4rem 1rem; font-size: var(--text-xs); }

  .partners-grid-full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .partners-grid-full { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .products-showcase { grid-template-columns: 1fr; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
}

.animate-in.visible {
  animation: fadeInUp var(--duration-slow) var(--ease-out-quart) forwards;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
