/* Worldbestve - Natural Vitamin E Manufacturer
   Modern B2B Website Stylesheet
   Color: Deep teal brand palette (per Worldbestve brochure)
*/

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

:root {
  --color-primary: #034a3d;
  --color-primary-dark: #022e25;
  --color-primary-light: #2c7a6a;
  --color-accent: #9bc6c6;
  --color-accent-light: #bfdcdc;
  --color-bg: #f9faf8;
  --color-bg-alt: #f1f4ef;
  --color-text: #1a1a1a;
  --color-text-light: #5a6260;
  --color-border: #e1e6e3;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Opt out of forced dark mode in WeChat / Safari / Chrome webviews */
  color-scheme: light;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

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

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

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 64px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* === Header / Nav === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-logo .logo-img {
  width: auto;
  height: 128px;
  max-width: 540px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switcher a,
.lang-switcher span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 16px;
  line-height: 1;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-switcher a {
  color: var(--color-text-light);
}

.lang-switcher a:hover {
  color: var(--color-primary);
  background: rgba(3, 74, 61, 0.08);
}

.lang-switcher .active {
  background: var(--color-primary);
  color: #fff;
}

/* Mobile: keep switcher visible in header */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
  }

  .nav-logo .logo-img {
    height: 96px;
    max-width: 70vw;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary-dark);
}

/* === Hero === */
.hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(155,198,198,0.18), transparent 45%),
    radial-gradient(circle at 10% 88%, rgba(2,46,37,0.25), transparent 48%),
    linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  color: white;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(191,220,220,0.14), transparent 42%);
  opacity: 1;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.55;
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(3, 74, 61, 0.22);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(3, 74, 61, 0.28);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.16);
  color: white;
  border-color: rgba(255,255,255,0.6);
}

/* === Stats Bar === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
  background: var(--color-white);
  padding: 44px 48px;
  margin: -56px auto 0;
  max-width: var(--max-width);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  border: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
  font-weight: 500;
}

/* === Product Cards === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(3, 74, 61, 0.18);
}

.product-card-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  padding: 26px 24px;
}

.product-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.product-card-header .cas {
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0.9;
}

/* Unified CAS label used on the products catalog page (matches homepage teal brand) */
.cas-line {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.cas-line .cas {
  color: var(--color-primary);
  font-weight: 600;
}

.product-card-body {
  padding: 26px 24px;
}

.product-card-body table {
  width: 100%;
  border-collapse: collapse;
}

.product-card-body table td {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-bg-alt);
}

.product-card-body table td:first-child {
  color: var(--color-text-light);
  width: 40%;
  font-weight: 500;
}

.product-card-body table td:last-child {
  font-weight: 600;
}

.product-applications {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* === Datasheet download button === */
.ds-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.ds-download:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.ds-download::before {
  content: "\2193";
  font-weight: 700;
}

/* === Feature/Advantage Blocks === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

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

/* === Application Areas === */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(3, 74, 61, 0.15);
}

.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.app-card p {
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* === Certifications === */
.cert-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cert-badge {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 28px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-primary-dark);
  text-align: center;
  min-width: 130px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.cert-badge:hover {
  border-color: rgba(3, 74, 61, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* === Table Styles === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: var(--color-primary-dark);
  color: white;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-bg-alt);
  font-size: 0.9rem;
}

.data-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question .toggle {
  font-size: 1.3rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question .toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: start;
  gap: 10px;
}

.contact-info .label {
  font-weight: 600;
  min-width: 80px;
  color: var(--color-text-light);
}

.contact-form {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3,74,61,0.1);
}

.contact-form button {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(3, 74, 61, 0.18);
}

.contact-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* === Form status message === */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-status--pending {
  background: #f3f8f8;
  border-color: #cfe6e6;
  color: var(--color-primary-dark);
}
.form-status--success {
  background: #eaf6ef;
  border-color: #bfe3cd;
  color: #1f6b45;
}
.form-status--error {
  background: #fdecec;
  border-color: #f3c2c2;
  color: #9b2c2c;
}
.form-status a { color: inherit; font-weight: 600; }

/* === Blog === */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.blog-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 36px;
  margin-bottom: 14px;
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.blog-article p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.blog-article ul, .blog-article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-article strong {
  color: var(--color-primary-dark);
}

.blog-cta {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  border: 1px solid var(--color-border);
}

.blog-cta h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.blog-cta p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}

/* === Footer === */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand .footer-logo-img {
  width: 150px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 0;
  display: block;
  opacity: 0.98;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 18px;
    border-top: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: block;
  }

  /* Keep logo left, switcher + hamburger grouped right on mobile */
  .nav-logo {
    flex: 0 0 auto;
  }

  .nav .lang-switcher {
    margin-left: auto;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .stats-bar {
    gap: 24px;
    padding: 24px;
    margin-top: -30px;
  }

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

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

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

  .section {
    padding: 40px 0;
  }

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