/* Li-Maxx B2B Lithium Tool Factory - Design System */

:root {
  --brand-yellow: #facc15;
  --brand-yellow-dark: #eab308;
  --brand-black: #1a1a1a;
  --brand-dark: #111827;
  --brand-gray: #f0f0f0;
  --brand-gray-2: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--brand-gray);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.announcement-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-black);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--brand-yellow-dark);
}

.brand-logo small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-left: 6px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--brand-yellow-dark);
}

.nav-link.active {
  color: var(--brand-yellow-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-yellow);
}

.btn-yellow {
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-yellow:hover {
  background: var(--brand-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

.btn-dark {
  background: var(--brand-black);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-black);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--brand-black);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--brand-black);
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

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

/* Hero Section */
.hero-section {
  background: var(--brand-gray-2);
  position: relative;
  overflow: hidden;
}

.hero-slide {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

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

/* Section Styles */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-yellow-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.1;
}

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

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 260px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-content {
  padding: 16px 20px;
  background: var(--white);
}

.category-card-content h3 {
  font-size: 18px;
  font-weight: 700;
}

.category-card-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--brand-gray-2);
  overflow: hidden;
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.oem {
  background: var(--brand-black);
  color: var(--white);
}

.product-card-body {
  padding: 20px;
}

.product-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-tag {
  background: var(--brand-gray);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

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

.product-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
}

.product-card-price span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}

/* Feature Cards / Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--brand-black);
  cursor: pointer;
}

.media-card.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.4s ease;
}

.media-card:hover img {
  opacity: 0.6;
  transform: scale(1.05);
}

.media-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.media-card-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.media-card-content p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* Stats Section */
.stats-section {
  background: var(--brand-black);
  color: var(--white);
}

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

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--brand-yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Feature List */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--brand-yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Article Cards */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.article-card-image {
  aspect-ratio: 16/9;
  background: var(--brand-gray-2);
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-card-body {
  padding: 24px;
}

.article-category {
  color: var(--brand-yellow-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 10px;
  line-height: 1.35;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* B2B Catalog */
.catalog-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.catalog-category {
  margin-bottom: 20px;
}

.catalog-category-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--brand-black);
}

.catalog-category-list {
  list-style: none;
}

.catalog-category-list li {
  padding: 6px 0;
}

.catalog-category-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.catalog-category-list a:hover {
  color: var(--brand-yellow-dark);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-yellow-dark);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

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

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

/* Contact Page */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

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

.contact-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

/* Footer */
.site-footer {
  background: var(--brand-black);
  color: var(--white);
}

.footer-top {
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-yellow);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Animations - visible by default for no-JS and SSR */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-up {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-yellow-dark), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-card.large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: auto;
    flex-direction: column-reverse;
    padding: 40px 0 0;
  }
  .hero-image {
    min-height: 300px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-card.large {
    grid-column: span 1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--brand-gray);
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
