/* ==========================================
   AOFENG SPRING (THAILAND) - 企业官网
   纯白亮色 + 泰国紫色与金色
   ========================================== */

/* --- CSS Variables --- */
:root {
  /* 主色调 - 纯白亮色 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FA;

  /* 强调色 - 泰国紫 */
  --accent-purple: #6B3FA0;
  --accent-purple-dark: #5B2D8E;
  --accent-purple-glow: rgba(107, 63, 160, 0.1);

  /* 泰国金 */
  --thai-gold: #C9A84C;
  --thai-gold-light: #E0C872;
  --thai-gold-dark: #A88828;
  --thai-gold-glow: rgba(201, 168, 76, 0.15);

  /* 泰国国旗色（点缀） */
  --thai-red: #ED1C24;
  --thai-blue: #241D4F;

  /* 文字 */
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A7A;
  --text-muted: #8E8EA0;

  /* 渐变 */
  --gradient-hero: linear-gradient(135deg, #F8F6FF 0%, #EDE4F5 50%, #F8F6FF 100%);
  --gradient-primary: linear-gradient(135deg, #6B3FA0, #5B2D8E);
  --gradient-gold: linear-gradient(135deg, #C9A84C, #E0C872);

  /* 边框 */
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(107, 63, 160, 0.2);

  /* 间距 */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--thai-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-purple);
  margin-bottom: 12px;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.section-header {
  margin-bottom: 60px;
}

/* Thai decorative divider */
.thai-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 16px 0 24px;
  border-radius: 2px;
  position: relative;
}
.thai-divider::before {
  content: '◇';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--thai-gold);
  font-size: 10px;
}
.text-center .thai-divider {
  margin: 16px auto 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 63, 160, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-purple);
  border: 1.5px solid var(--accent-purple);
}
.btn-outline:hover {
  background: var(--accent-purple-glow);
  transform: translateY(-2px);
  color: var(--accent-purple);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1A1A2E;
  box-shadow: 0 4px 20px var(--thai-gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
  color: #1A1A2E;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand .brand-thai {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.navbar-brand .brand-gold {
  color: var(--thai-gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  background: var(--accent-purple-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-base);
  border-radius: 1px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 246, 255, 0.95) 0%, rgba(237, 228, 245, 0.9) 100%);
}

/* Thai decorative watermark */
.hero-watermark {
  position: absolute;
  right: -5%;
  bottom: 5%;
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  color: rgba(107, 63, 160, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  font-family: 'Noto Sans Thai', serif;
  letter-spacing: 4px;
  user-select: none;
}

/* Floating decorative elements */
.hero-ornament {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-ornament-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 63, 160, 0.06) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-ornament-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  bottom: -50px;
  right: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--thai-gold);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-badge .flag-icon {
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight-cyan {
  color: var(--accent-purple);
}

.hero-title .highlight-gold {
  color: var(--thai-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Stats Section --- */
.stats-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--thai-gold), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Features / Advantages --- */
.features-section {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(107, 63, 160, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(107, 63, 160, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
}

.feature-icon.gold {
  background: var(--thai-gold-glow);
  color: var(--thai-gold);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Products Overview --- */
.products-overview {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(107, 63, 160, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(107, 63, 160, 0.08);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--bg-secondary);
}

.product-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Certifications Bar --- */
.cert-bar {
  padding: 60px 0;
  background: var(--bg-primary);
}

.cert-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cert-item img {
  height: 50px;
  width: auto;
}

.cert-item .cert-info h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cert-item .cert-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--thai-gold), transparent);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-contact .footer-icon {
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-purple);
}

/* --- Blog --- */
.blog-list { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }
.blog-post { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: all var(--transition-base); display: grid; grid-template-columns: 240px 1fr; }
.blog-post:hover { border-color: rgba(107, 63, 160, 0.2); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(107, 63, 160, 0.08); }
.blog-post-img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.blog-post-body { padding: 28px; display: flex; flex-direction: column; }
.blog-post-tag { display: inline-block; padding: 3px 10px; background: var(--accent-purple-glow); color: var(--accent-purple); border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; width: fit-content; }
.blog-post h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-post .post-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.blog-post p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.blog-post .read-more { color: var(--accent-purple); font-weight: 600; font-size: 0.88rem; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.blog-post .read-more:hover { color: var(--thai-gold); }

/* Thai decorative element in footer */
.footer-thai-ornament {
  text-align: center;
  margin-bottom: 20px;
  color: var(--thai-gold);
  font-size: 1.5rem;
  opacity: 0.3;
  letter-spacing: 8px;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-header .page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-header-ornament {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

/* --- About Page --- */
.about-intro {
  padding: var(--section-padding);
}

.about-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Timeline */
.timeline-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-purple), var(--thai-gold));
  top: 0;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  padding: 20px 0;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-secondary);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--thai-gold);
}

.timeline-content {
  width: 42%;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: rgba(107, 63, 160, 0.2);
  transform: translateY(-2px);
}

.timeline-content .year {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 6px;
}

.timeline-item:nth-child(even) .timeline-content .year {
  color: var(--thai-gold);
}

.timeline-content h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Global Presence */
.global-section {
  padding: var(--section-padding);
}

.global-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.global-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.global-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.global-card .country-flag {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.global-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.global-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.global-card .area-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* --- Products Page --- */
.products-page {
  padding: var(--section-padding);
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.products-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.product-categories {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.category-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-btn:last-child {
  border-bottom: none;
}

.category-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.category-btn.active {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-left: 3px solid var(--accent-purple);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  border-color: rgba(107, 63, 160, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(107, 63, 160, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-item .gallery-info {
  padding: 16px;
}

.gallery-item .gallery-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-item .gallery-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-desc {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.product-desc h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-desc p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Quality Page --- */
.quality-page {
  padding: var(--section-padding);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.certificate-card:hover {
  border-color: var(--thai-gold);
  transform: translateY(-4px);
}

.certificate-card img {
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.certificate-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.certificate-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.qc-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.qc-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  position: relative;
}

.qc-step .step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(107, 63, 160, 0.1);
  position: absolute;
  top: 8px;
  right: 16px;
  line-height: 1;
}

.qc-step .step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.qc-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.qc-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Facilities Page --- */
.facilities-page {
  padding: var(--section-padding);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.facility-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  aspect-ratio: 16/10;
}

.facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-item:hover img {
  transform: scale(1.05);
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(248, 246, 255, 0.95));
}

.facility-overlay h4 {
  font-size: 1rem;
  font-weight: 600;
}

.facilities-page .facility-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* --- Applications Page --- */
.applications-page {
  padding: var(--section-padding);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(107, 63, 160, 0.2);
  transform: translateY(-4px);
}

.app-card .app-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.app-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.app-card .app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-card .app-tag {
  padding: 3px 10px;
  background: rgba(107, 63, 160, 0.08);
  border: 1px solid rgba(107, 63, 160, 0.15);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--accent-purple);
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-page {
  padding: var(--section-padding);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .cd-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail .cd-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
}

.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map section */
.map-section {
  padding: 0 0 80px;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Responsive --- */

/* Tablet landscape & small desktop */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
  }

  .category-btn {
    width: auto;
    border-bottom: none;
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .global-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet portrait - collapse nav */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    height: 300px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .qc-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header .page-title {
    font-size: 2.2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .blog-post {
    grid-template-columns: 200px 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 12px;
  }

  .timeline-content {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .qc-process {
    grid-template-columns: 1fr;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facilities-page .facility-item:first-child {
    aspect-ratio: 16/10;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header .page-title {
    font-size: 2rem;
  }

  .global-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-post {
    grid-template-columns: 1fr;
  }

  .blog-post-img {
    min-height: 200px;
  }

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 16px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection styling */
::selection {
  background: var(--accent-purple);
  color: #FFFFFF;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
