/* JUNKE Wheels - Independent Website Styles */
:root {
  --primary: #444E71;
  --primary-dark: #353d5a;
  --accent: #FF0000;
  --accent-hover: #d90000;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --max-width: 1200px;
  --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* Hero */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #444E71 0%, #2c3350 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}
.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat-number { display: block; font-size: 40px; font-weight: 800; color: #FF4444; line-height: 1; }
.stat-unit { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.stat-label { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.9); margin-top: 10px; }

/* Sections */
.section { padding: 90px 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 34px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-image { background: #f1f5f9; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.category-body h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.category-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Featured products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f1f5f9; }
.product-card h3 { font-size: 18px; padding: 20px 24px 6px; color: var(--text); }
.product-card p { font-size: 14px; color: var(--text-light); padding: 0 24px 24px; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--text); }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.highlight {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.highlight h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.highlight p { font-size: 13px; color: var(--text-light); }

/* Why us */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.value-item h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.value-item p { font-size: 14px; color: var(--text-light); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--text-light); margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.contact-list a { color: var(--accent); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 14px; text-align: center; }
.form-note a { color: var(--accent); }

/* Form submit status message */
.form-status { display: none; margin-bottom: 18px; }
.form-status.is-pending,
.form-status.is-success,
.form-status.is-error {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.form-status.is-pending { background: #f3f4f6; color: var(--text-light); border: 1px solid var(--border); }
.form-status.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}
.form-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 600;
}
.contact-form button[type="submit"]:disabled { opacity: 0.7; cursor: default; }

/* Honeypot field for spam bots - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-text { color: rgba(255, 255, 255, 0.7); }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 8px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.footer-nav a:hover { color: #fff; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }

/* Language switcher */
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  background: #fff;
  border: none;
  border-right: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button:hover { background: var(--bg-alt); color: var(--primary); }
.lang-switch button.active { background: var(--primary); color: #fff; }

/* FAQ */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.75;
}

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wa-fab.visible { opacity: 1; pointer-events: auto; }
.wa-toggle {
  order: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.wa-toggle:hover { transform: scale(1.06); }
.wa-menu {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.wa-fab.open .wa-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.wa-item:hover { transform: translateY(-2px); }
.wa-wa { color: #0F6E56; }
.wa-mail { color: var(--primary); }

/* RTL (Arabic) */
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .value-item {
  border-left: none;
  border-right: 4px solid var(--accent);
}
[dir="rtl"] .wa-fab { right: auto; left: 24px; align-items: flex-start; }
[dir="rtl"] .wa-menu { align-items: flex-start; }
[dir="rtl"] .wa-toggle { order: 2; }
[dir="rtl"] .back-to-top { right: auto; left: 24px; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .contact-list { text-align: right; }
[dir="rtl"] .form-note { text-align: center; }

/* Certifications */
.certs { background: var(--bg-alt); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.cert-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.cert-badge { display: inline-block; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.cert-item p { font-size: 14px; color: var(--text-light); margin: 0; }

/* Brand film */
.video-sec { background: var(--primary); color: #fff; }
.video-sec .section-title { color: #fff; }
.video-sec .section-subtitle { color: rgba(255, 255, 255, 0.82); }
.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.brand-video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Category page hero */
.hero-sm { padding: 120px 0 60px; }
.hero-sm .hero-title { font-size: 38px; }

/* Product card actions */
.product-info .product-actions { display: flex; gap: 10px; padding: 0 24px 20px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.product-info h3 { padding: 20px 24px 6px; }
.product-info p { padding: 0 24px 12px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { position: relative; max-width: 92vw; max-height: 92vh; }
.lightbox-inner img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: none; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.cat-empty { text-align: center; padding: 40px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-light); }

/* Gallery - Facility & Team */
.gallery { background: var(--bg-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
}
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* RTL adjustments for new components */
[dir="rtl"] .product-actions { flex-direction: row-reverse; }
[dir="rtl"] .cert-grid { direction: rtl; }

/* Responsive */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 70px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  [dir="rtl"] .footer-inner { flex-direction: column; }
  [dir="rtl"] .main-nav a { text-align: right; }
  .lang-switch button { padding: 6px 10px; font-size: 12px; }
  .wa-fab { bottom: 84px; right: 18px; }
  [dir="rtl"] .wa-fab { left: 18px; }
  .faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-a p { padding: 0 18px 18px; }
}
