/* ========================================
   TUOCHEN — Fragrance Wood Packaging
   Minimal Dark Luxury + Wood Accents
   Supports: LTR & RTL (Arabic)
   ======================================== */

/* CSS Variables */
:root {
  --bg-primary: #f5f3f0;
  --bg-secondary: #ebe8e3;
  --bg-tertiary: #e0dcd6;
  --bg-light: #faf9f7;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-wood: #b8956a;
  --accent-wood-light: #c9a87a;
  --accent-wood-dark: #9a7a52;
  --border: rgba(184, 149, 106, 0.2);
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-latin: 'Inter', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-ar: 'Noto Naskh Arabic', serif;
}

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

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

body {
  font-family: var(--font-latin);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[lang="zh"] { font-family: var(--font-cn); }
body[lang="ar"] { font-family: var(--font-ar); }

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-container,
[dir="rtl"] .nav-links,
[dir="rtl"] .nav-actions,
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .product-info,
[dir="rtl"] .factory-content,
[dir="rtl"] .case-info,
[dir="rtl"] .contact-info,
[dir="rtl"] .contact-details,
[dir="rtl"] .footer-grid,
[dir="rtl"] .footer-links ul,
[dir="rtl"] .process-steps,
[dir="rtl"] .factory-features,
[dir="rtl"] .form-row {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .product-info,
[dir="rtl"] .factory-content,
[dir="rtl"] .case-info,
[dir="rtl"] .contact-info {
  align-items: flex-start;
}

[dir="rtl"] .link-arrow::after {
  content: " \2190";
}

[dir="rtl"] .link-arrow {
  direction: rtl;
}

[dir="rtl"] .feature span {
  margin-right: 0;
  margin-left: 0.75rem;
}

[dir="rtl"] .contact-item .contact-icon {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .arrow.prev { left: auto; right: 2rem; }
[dir="rtl"] .arrow.next { right: auto; left: 2rem; }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
}

.navbar.scrolled {
  background: rgba(245, 243, 240, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .menu-toggle span {
  color: #333333;
}

.navbar.scrolled .nav-links a:hover {
  color: var(--accent-wood-dark);
}

.navbar.scrolled .lang-switcher {
  background: rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #f5f3f0;
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover { color: var(--accent-wood-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(245, 243, 240, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-wood);
  transition: var(--transition);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover {
  color: #f5f3f0;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(245, 243, 240, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover { color: rgba(245, 243, 240, 0.85); }

.lang-btn.active {
  background: var(--accent-wood);
  color: #ffffff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #f5f3f0;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--border);
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  [dir="rtl"] .nav-links.open {
    right: auto;
    left: 0;
  }

  .menu-toggle { display: flex; }
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,243,240,0.75) 0%, rgba(245,243,240,0.2) 60%, transparent 100%);
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(to left, rgba(245,243,240,0.75) 0%, rgba(245,243,240,0.2) 60%, transparent 100%);
}

/* Image-only slide: lighter overlay, no text content */
.hero-overlay--light {
  background: rgba(0, 0, 0, 0.08);
}

.hero-slide--image-only img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  bottom: 18%;
  left: 8%;
  max-width: 600px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[dir="rtl"] .hero-content {
  left: auto;
  right: 8%;
  align-items: flex-start;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-wood);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-wood);
  color: var(--bg-primary);
  padding: 1rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-wood-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 168, 130, 0.2);
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent-wood);
  transform: scale(1.2);
}

/* Hero Arrows */
.hero-arrows {
  position: absolute;
  bottom: 2.5rem;
  right: 8%;
  display: flex;
  gap: 1rem;
  z-index: 3;
}

[dir="rtl"] .hero-arrows {
  right: auto;
  left: 8%;
}

.arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background: var(--accent-wood);
  border-color: var(--accent-wood);
  color: #ffffff;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 8%;
  z-index: 3;
}

[dir="rtl"] .scroll-hint {
  left: auto;
  right: 8%;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-wood), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero { min-height: 600px; }
  .hero-content { left: 5%; right: 5%; bottom: 15%; }
  [dir="rtl"] .hero-content { right: 5%; left: 5%; }
  .hero-arrows { display: none; }
  .scroll-hint { display: none; }
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-wood);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-wood);
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-num { font-size: 2rem; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.light {
  color: var(--text-primary);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-wood);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products {
  padding: 7rem 0;
  background: var(--bg-primary);
}

.product-showcase {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.product-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

.product-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.product-showcase-tag {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-info h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-info h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.product-info h3 a:hover {
  color: var(--accent-wood);
}

.product-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.link-arrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-wood);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.link-arrow:hover {
  color: var(--accent-wood-light);
}

.link-arrow::after {
  content: " \2192";
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PROCESS
   ======================================== */
.process {
  padding: 7rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-wood);
  margin-bottom: 1.25rem;
  display: block;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FACTORY
   ======================================== */
.factory {
  padding: 7rem 0;
  background: var(--bg-primary);
}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.factory-media {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.factory-img-main {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
}

.factory-img-sub {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
}

.factory-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 1rem 0 1.5rem;
}

.factory-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.factory-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature span {
  color: var(--accent-wood);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .factory-media {
    grid-template-columns: 1fr 1fr;
  }
  .factory-img-main, .factory-img-sub {
    height: 300px;
  }
}

/* ========================================
   CASES
   ======================================== */
.cases {
  padding: 7rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

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

.case-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-info {
  padding: 1.75rem;
}

.case-client {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-wood);
  display: block;
  margin-bottom: 0.75rem;
}

.case-info h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.case-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 7rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  text-align: left;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-text {
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ========================================
   SOLUTIONS
   ======================================== */
.solutions {
  padding: 7rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.solution-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.solution-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-wood);
  margin-bottom: 1.25rem;
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.solution-lead {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-wood-dark);
  margin-bottom: 0.75rem;
}

.solution-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.solution-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.solution-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-img img {
  transform: scale(1.03);
}

.solutions-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .solution-card {
    padding: 1.5rem;
  }
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 7rem 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 1rem 0 1.25rem;
}

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--accent-wood);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-wood);
}

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

.form-group select {
  cursor: pointer;
  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='%23999999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

[dir="rtl"] .form-group select {
  background-position: left 1rem center;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

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

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-wood);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Form note */
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Button loading state */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links li {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  text-align: center;
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-btns {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[dir="rtl"] .floating-btns {
  right: auto;
  left: 2rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

.float-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.float-btn.whatsapp:hover {
  background: #1fb350;
  transform: scale(1.08);
}

.float-btn.email {
  background: var(--accent-wood);
  color: #ffffff;
}

.float-btn.email:hover {
  background: var(--accent-wood-light);
  transform: scale(1.08);
}

.float-btn.backtop {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.float-btn.backtop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn.backtop:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-wood);
  color: var(--accent-wood);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2.5rem;
  }
  .products, .process, .factory, .cases, .testimonials, .contact {
    padding: 4rem 0;
  }
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
  padding: 8rem 0 4rem;
  background: var(--bg-primary);
  min-height: 100vh;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Product Images */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.thumbnail-list {
  display: flex;
  gap: 0.75rem;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.thumb:hover,
.thumb.active {
  border-color: var(--accent-wood);
}

/* Product Info */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-wood);
  border-bottom: 1px solid var(--accent-wood);
  padding-bottom: 0.25rem;
  width: fit-content;
}

.product-detail-info h1 {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
}

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

/* Specs */
.specs-section h3,
.options-section h3 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* Options */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.option-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.option-group select {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.9375rem;
  cursor: pointer;
  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='%23999999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.option-group select:focus {
  outline: none;
  border-color: var(--accent-wood);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent-wood);
  color: #ffffff;
  border: 1px solid var(--accent-wood);
}

.btn-primary:hover {
  background: var(--accent-wood-light);
  border-color: var(--accent-wood-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--accent-wood);
  color: var(--accent-wood);
}

/* Long Description */
.product-long-desc {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 3rem;
}

.product-long-desc h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.desc-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.desc-content p {
  margin-bottom: 1rem;
}

.desc-content ul {
  list-style: none;
  padding: 0;
}

.desc-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.desc-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--accent-wood);
  border-radius: 50%;
}

/* Related Products */
.related-products {
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.related-products h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.related-products .product-grid.small {
  grid-template-columns: repeat(3, 1fr);
}

.related-products .product-card img {
  height: 200px;
}

/* Responsive */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .main-image img {
    height: 360px;
  }
  .related-products .product-grid.small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-detail {
    padding: 6rem 0 3rem;
  }
  .product-detail-info h1 {
    font-size: 1.75rem;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .product-actions {
    flex-direction: column;
  }
  .related-products .product-grid.small {
    grid-template-columns: 1fr;
  }
  .thumb {
    width: 60px;
    height: 60px;
  }
}

/* ========================================
   ARTICLES (ARTICLES LIST PAGE)
   ======================================== */
.articles-hero {
  padding: 10rem 0 4rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.articles-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.articles-list {
  padding: 4rem 0 6rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover img {
  transform: scale(1.03);
}

.article-card .article-body {
  padding: 1.5rem;
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-wood);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* ========================================
   ARTICLE DETAIL PAGE
   ======================================== */
.article-header {
  padding: 10rem 0 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.article-content-wrap {
  padding: 3rem 0 5rem;
}

.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 2.5rem;
  border-radius: 2px;
}

.article-body-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-body-text h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-body-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-body-text p {
  margin-bottom: 1.25rem;
}

.article-body-text ul,
.article-body-text ol {
  margin: 0 0 1.25rem 1.5rem;
  padding-left: 0.5rem;
}

.article-body-text li {
  margin-bottom: 0.5rem;
}

.article-body-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.article-body-text img {
  width: 100%;
  border-radius: 2px;
  margin: 1.5rem 0;
}

.article-body-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-body-text th {
  text-align: left;
  padding: 0.75rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-wood);
}

.article-body-text td {
  padding: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.article-tags span {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.related-articles {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .articles-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .articles-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .articles-hero,
  .article-header {
    padding: 7rem 0 3rem;
  }
  .article-cover {
    height: 240px;
  }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-wood-dark);
}
