/* Candour Fireworks - Frontend Styles */
/* Minimal custom CSS — most styling via inline Tailwind-like classes */

:root {
  --primary: #E85D26;
  --primary-light: #F07D4D;
  --primary-dark: #C44E1D;
  --accent: #D4A017;
  --accent-light: #E8BD38;
  --secondary: #1A2744;
  --secondary-light: #2A3B5E;
  --bg-dark: #0A1628;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --radius: 6px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* Hero Gradient Background */
.hero-gradient {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1f3c 100%);
}

/* Section Padding */
.section-padding {
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .section-padding { padding: 80px 48px; }
}
@media (min-width: 1024px) {
  .section-padding { padding: 100px 96px; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Two-column split layout (about page / product detail) */
.split-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split-2col { grid-template-columns: 1fr; gap: 32px; }
  .split-2col #main-image { height: 280px; }
  .split-2col #main-image img { max-height: 260px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondary);
}
.logo .primary { color: var(--primary); }
.logo-icon { width: 32px; height: 32px; color: var(--primary); }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}
.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

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

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

@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
  }
  .mobile-nav a.active { color: var(--primary); }
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

.footer-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-section p,
.footer-section a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.footer-section a:hover { color: var(--primary); }

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  color: var(--white);
}
@media (min-width: 768px) { .hero-content { padding: 128px 48px; } }
@media (min-width: 1024px) { .hero-content { padding: 160px 96px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,93,38,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
}
@media (min-width: 768px) { .hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 640px;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 20px; } }

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

/* Stats row */
.stats-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.stat-icon { width: 24px; height: 24px; color: var(--primary); margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--white); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .section-title { font-size: 36px; } }

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Feature cards */
.feature-card {
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(232,93,38,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon { width: 24px; height: 24px; color: var(--primary); }
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Product cards */
.product-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-strip { height: 8px; }
.product-body { padding: 20px; }
.product-category { font-size: 12px; font-weight: 500; color: var(--primary); }
.product-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.product-specs { font-size: 12px; color: var(--text-muted); }
.product-specs strong { color: var(--text-dark); font-weight: 500; }
.product-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.product-tag {
  font-size: 12px;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Contact form */
.contact-form {
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,38,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }

.form-required { color: var(--primary); }

/* Success message */
.success-message {
  padding: 32px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}
.success-icon { width: 64px; height: 64px; color: var(--primary); margin-bottom: 16px; }

/* Timeline */
.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
}
.timeline-dot {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}
.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 8px;
}
.timeline-year { font-size: 14px; font-weight: 600; color: var(--primary); }
.timeline-event { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Market card */
.market-card {
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.market-region { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.market-countries { font-size: 14px; color: var(--text-muted); }

/* OEM section */
.oem-section {
  padding: 32px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Gradient strips for product categories */
.strip-orange-red { background: linear-gradient(to right, #ea580c, #dc2626); }
.strip-red-pink { background: linear-gradient(to right, #ef4444, #ec4899); }
.strip-amber-orange { background: linear-gradient(to right, #f59e0b, #f97316); }
.strip-yellow-amber { background: linear-gradient(to right, #facc15, #f59e0b); }
.strip-blue-indigo { background: linear-gradient(to right, #3b82f6, #6366f1); }
.strip-purple-violet { background: linear-gradient(to right, #a855f7, #7c3aed); }

/* Category filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-light);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { background: rgba(232,93,38,0.1); color: var(--primary); }
.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Search */
.search-wrap {
  position: relative;
  max-width: 400px;
  margin-bottom: 40px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

/* Contact info items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(232,93,38,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon { width: 20px; height: 20px; color: var(--primary); }
.contact-label { font-size: 14px; font-weight: 600; }
.contact-value { font-size: 14px; color: var(--text-muted); }

/* SVG icon helper */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* Product card link (clickable card) */
.product-card-link {
  display: block;
}
.product-card-link:hover .product-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Grid-4 layout */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
