/* ============================================================
   Trusty Food Products Co., Ltd.
   www.trustyfoodproducts.com
   Main Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&family=Noto+Sans+TC:wght@300;400;500&family=Noto+Serif+TC:wght@400;600&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@400;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:    #2C4A3E;
  --color-primary-dark: #1e332b;
  --color-primary-light: #3d6455;
  --color-text:       #2D2D2D;
  --color-text-light: #5a5a5a;
  --color-bg:         #F7F5F0;
  --color-accent:     #B8975A;
  --color-accent-hover: #a07e45;
  --color-light:      #EDE8DF;
  --color-border:     #D8D4CC;
  --color-white:      #FFFFFF;
  --color-overlay:    rgba(28, 46, 38, 0.72);

  --font-display-en:  'Cormorant Garamond', Georgia, serif;
  --font-body-en:     'Inter', system-ui, sans-serif;
  --font-zh:          'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-zh-serif:    'Noto Serif TC', 'PMingLiU', serif;
  --font-ja:          'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-ja-serif:    'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --shadow-card: 0 2px 16px rgba(44, 74, 62, 0.08);
  --shadow-hover: 0 6px 24px rgba(44, 74, 62, 0.14);
  --transition:  all 0.22s ease;

  --max-width: 1160px;
  --section-padding: 96px 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body-en);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Lang-specific body fonts ---------- */
[lang="zh-Hant"] body,
[lang="zh-Hant"] { font-family: var(--font-zh); }
[lang="zh-Hant"] h1,
[lang="zh-Hant"] h2,
[lang="zh-Hant"] h3 { font-family: var(--font-zh-serif); }

[lang="ja"] body,
[lang="ja"] { font-family: var(--font-ja); }
[lang="ja"] h1,
[lang="ja"] h2,
[lang="ja"] h3 { font-family: var(--font-ja-serif); }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.62);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px rgba(44, 74, 62, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-logo-img {
  display: block;
  height: 66px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}
.nav-logo-text {
  display: none;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-text.show { display: flex; }
@media (max-width: 480px) {
  .nav-logo-img { height: 48px; max-width: 220px; }
}
.nav-logo-en {
  font-family: var(--font-display-en);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.18s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--color-primary); }

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--color-border);
}
.lang-switcher a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  padding: 4px 6px;
  border-radius: 3px;
  transition: var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color-primary);
  background: var(--color-light);
}
.lang-switcher .sep {
  color: var(--color-border);
  font-size: 11px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  padding: 32px 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.18s;
}
.nav-mobile a:hover { color: var(--color-primary); }
.nav-mobile .mobile-lang {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
}
.nav-mobile .mobile-lang a {
  border: none;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--color-light);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
}
.nav-mobile .mobile-lang a.active { background: var(--color-primary); color: var(--color-white); }

@media (max-width: 900px) {
  .nav-links, .lang-switcher { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}
/* Layered depth background — works with or without a hero photo.
   Image sits on top; rich gradients below show through if it 404s. */
/* Scroll-parallax wrapper for the hero background — kept separate
   from .hero-bg so the existing ambient drift/glow animation below
   is untouched by the scroll-linked transform. */
.hero-bg-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('../images/home-hero-bg-1920.jpg') center / cover no-repeat,
    radial-gradient(120% 90% at 18% 12%, rgba(61, 100, 85, 0.55) 0%, rgba(61, 100, 85, 0) 55%),
    radial-gradient(90% 80% at 88% 8%, rgba(184, 151, 90, 0.28) 0%, rgba(184, 151, 90, 0) 50%),
    radial-gradient(140% 120% at 80% 110%, rgba(15, 26, 21, 0.9) 0%, rgba(15, 26, 21, 0) 55%),
    linear-gradient(160deg, #1e332b 0%, #16271f 48%, #0e1813 100%);
  filter: saturate(0.95);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
/* Soft floating light, adds life to the background */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side, rgba(184, 151, 90, 0.22), transparent 70%);
  width: 60vmax;
  height: 60vmax;
  top: -15vmax;
  right: -10vmax;
  border-radius: 50%;
  filter: blur(20px);
  animation: heroGlow 18s ease-in-out infinite alternate;
}
/* Fine leaf-vein / topographic texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(65deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 60px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 24, 19, 0.82) 0%, rgba(14, 24, 19, 0.45) 50%, rgba(14, 24, 19, 0.2) 100%),
    linear-gradient(0deg, rgba(14, 24, 19, 0.65) 0%, rgba(14, 24, 19, 0) 45%);
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
@keyframes heroGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.15); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}
/* Staggered entrance for hero elements */
.hero-content > * {
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content > .hero-eyebrow { animation-delay: 0.05s; }
.hero-content > h1           { animation-delay: 0.18s; }
.hero-content > .hero-sub    { animation-delay: 0.34s; }
.hero-content > .hero-detail { animation-delay: 0.44s; }
.hero-content > .hero-ctas   { animation-delay: 0.54s; }
.hero-content > .hero-note   { animation-delay: 0.66s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-brandline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display-en);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
[lang="zh-Hant"] .hero-brandline { font-family: var(--font-zh-serif); }
[lang="ja"] .hero-brandline { font-family: var(--font-ja-serif); }
.hero-brandline-sub {
  font-family: var(--font-body-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 151, 90, 0.4);
}
.hero h1 {
  font-family: var(--font-display-en);
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-white);
  max-width: 900px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
[lang="zh-Hant"] .hero h1 { font-family: var(--font-zh-serif); }
[lang="ja"] .hero h1 { font-family: var(--font-ja-serif); }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 300;
}
.hero-detail {
  font-size: 13px;
  color: rgba(255,255,255,0.54);
  margin-bottom: 44px;
  letter-spacing: 0.02em;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 151, 90, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid var(--color-primary);
}
.btn-primary-dark:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 74, 62, 0.25);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-primary);
  transition: var(--transition);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Arrow glyph inside CTA buttons — nudges right on hover */
.btn-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow,
.btn-primary-dark:hover .btn-arrow,
.btn-outline-dark:hover .btn-arrow {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-arrow { transition: none !important; }
  .btn-primary:hover .btn-arrow,
  .btn-secondary:hover .btn-arrow,
  .btn-primary-dark:hover .btn-arrow,
  .btn-outline-dark:hover .btn-arrow { transform: none !important; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-padding); }
.section-alt { background: var(--color-light); }
.section-dark { background: var(--color-primary); }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display-en);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
[lang="zh-Hant"] .section-title { font-family: var(--font-zh-serif); }
[lang="ja"] .section-title { font-family: var(--font-ja-serif); }
.section-title-light { color: var(--color-white); }

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.section-subtitle-light { color: rgba(255,255,255,0.72); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ============================================================
   STATS BAR (Home)
   ============================================================ */
.stats-bar {
  background: var(--color-primary);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display-en);
  font-size: 42px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   FEATURE GRID (Home highlights)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
}
.feature-card {
  background: var(--color-white);
  padding: 48px 40px;
  transition: var(--transition);
}
.feature-card:hover { background: var(--color-bg); }
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-title {
  font-family: var(--font-display-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
[lang="zh-Hant"] .feature-title { font-family: var(--font-zh-serif); }
[lang="ja"] .feature-title { font-family: var(--font-ja-serif); }
.feature-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-light);
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-border) 100%);
  color: var(--color-text-light);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.img-placeholder-icon {
  width: 36px;
  height: 36px;
  opacity: 0.35;
}
.product-card-body { padding: 24px; }
.product-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(184, 151, 90, 0.1);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
}
.service-card {
  background: var(--color-white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.3s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--color-bg); }
.service-num {
  font-family: var(--font-display-en);
  font-size: 48px;
  font-weight: 400;
  color: rgba(44, 74, 62, 0.08);
  line-height: 1;
  margin-bottom: 16px;
}
.service-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.service-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ============================================================
   QUALITY SECTION
   ============================================================ */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.quality-points { display: flex; flex-direction: column; gap: 32px; }
.quality-point {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.quality-point:last-child { border-bottom: none; padding-bottom: 0; }
.quality-point-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(44, 74, 62, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-top: 2px;
}
.quality-point-icon svg { width: 20px; height: 20px; }
.quality-point-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.quality-point-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.75;
}
.quality-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.quality-img .img-placeholder {
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--color-primary);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display-en);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}
[lang="zh-Hant"] .page-hero h1 { font-family: var(--font-zh-serif); }
[lang="ja"] .page-hero h1 { font-family: var(--font-ja-serif); }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.65;
}

/* ============================================================
   BULLET LISTS
   ============================================================ */
.bullet-list { display: flex; flex-direction: column; gap: 12px; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.65;
}
.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 9px;
}

/* ============================================================
   TWO-COL LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.two-col-img .img-placeholder { aspect-ratio: 4/3; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.news-card-img {
  aspect-ratio: 16/9;
  background: var(--color-light);
  overflow: hidden;
}
.news-card-img .img-placeholder { aspect-ratio: 16/9; }
.news-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-border) 100%);
}
.news-placeholder-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.55);
  padding: 7px 18px;
  border-radius: 20px;
}
.news-card-body { padding: 24px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.news-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(184,151,90,0.1);
  padding: 3px 8px;
  border-radius: 2px;
}
.news-date {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}
.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.45;
  transition: color 0.18s;
}
.news-card:hover .news-title { color: var(--color-primary); }
.news-excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.contact-info { position: sticky; top: 100px; }
.contact-info-title {
  font-family: var(--font-display-en);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 28px;
}
[lang="zh-Hant"] .contact-info-title { font-family: var(--font-zh-serif); }
[lang="ja"] .contact-info-title { font-family: var(--font-ja-serif); }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 3px;
}
.contact-detail-val {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

/* Form */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 0; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
}
.form-label .req { color: var(--color-accent); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.18s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-submit {
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid var(--color-primary);
}
.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 74, 62, 0.25);
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-primary);
}
.form-success-icon { font-size: 40px; margin-bottom: 12px; }
.form-success-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.form-success-text { font-size: 14px; color: var(--color-text-light); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.cta-banner-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.cta-banner h2 {
  font-family: var(--font-display-en);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 14px;
  line-height: 1.3;
}
[lang="zh-Hant"] .cta-banner h2 { font-family: var(--font-zh-serif); }
[lang="ja"] .cta-banner h2 { font-family: var(--font-ja-serif); }
.cta-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display-en);
  font-size: 18px;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.75;
  max-width: 260px;
}
.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--color-white); }
.footer-addr {
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; }
.footer-lang { display: flex; gap: 14px; }
.footer-lang a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.18s;
}
.footer-lang a:hover, .footer-lang a.active { color: var(--color-accent); }

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 0;
  width: 1.5px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-year {
  font-family: var(--font-display-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quality-grid { gap: 40px; }
  .two-col { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; gap: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }
  .quality-grid { grid-template-columns: 1fr; }
  .quality-img { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { position: static; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-content { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-primary-dark, .btn-outline-dark {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}

/* ============================================================
   IMPACT ENHANCEMENTS (hero scroll cue, stats, accents)
   ============================================================ */

/* Scroll-down cue at the bottom of the hero */
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 1px;
  height: 46px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(184,151,90,0) 0%, var(--color-accent) 45%, rgba(184,151,90,0) 100%);
  z-index: 2;
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.6); }
  50%      { opacity: 1;    transform: translateX(-50%) scaleY(1); }
}

/* Stats bar — bolder, with a subtle gold accent line on top */
.stats-bar {
  position: relative;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.stat-num {
  font-size: clamp(44px, 5vw, 56px);
  background: linear-gradient(135deg, #d8bd83 0%, var(--color-accent) 60%, #9a7d44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section eyebrow — small leading accent dash for rhythm */
.section-eyebrow.text-center { position: relative; display: inline-block; }
.section-eyebrow.text-center::before,
.section-eyebrow.text-center::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: rgba(184, 151, 90, 0.5);
}
.section-eyebrow.text-center::before { right: 100%; margin-right: 14px; }
.section-eyebrow.text-center::after  { left: 100%;  margin-left: 14px; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Certifications page */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: 1fr; }
}
.cert-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(44, 74, 62, 0.06);
}
.cert-card-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.cert-card-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 24px;
}
.cert-thumb-wrap {
  margin-bottom: 14px;
}
.cert-thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 74, 62, 0.1);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 74, 62, 0.16);
}
.cert-thumb-note {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.7;
}
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  cursor: zoom-out;
}
.cert-lightbox.open { display: flex; }
.cert-lightbox img {
  max-width: min(700px, 92vw);
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.cert-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
