/* ============================================
   CDIntkon - Premium Promotional Products
   Brand: Professional B2B, Clean & Modern
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #f1f5f9;
  --border: #e2e8f0;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -6px rgba(0,0,0,0.05);
  --max-width: 1200px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Navigation */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--text); font-weight: 600; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 50%, #1a365d 100%);
  color: var(--text-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  max-width: 700px; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.2rem; color: #94a3b8; max-width: 550px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #e8960a; transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* Stats Bar */
.stats-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-item p { color: var(--text-light); font-size: 0.875rem; margin-top: 4px; }

/* Section styles */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.badge {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); font-weight: 600; font-size: 0.8rem;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Category Cards */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.cat-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s; cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.cat-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }
.cat-card .cat-price { margin-top: 12px; font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.cat-card .cat-moq { color: var(--text-light); font-size: 0.8rem; }

/* How It Works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step-card {
  text-align: center; padding: 40px 24px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 48px; height: 48px; background: var(--primary);
  color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.9rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card {
  background: #fff; padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.testimonial-card .quote { font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.testimonial-card .author { font-weight: 700; }
.testimonial-card .company { color: var(--text-light); font-size: 0.85rem; }

/* Inquiry Form */
.inquiry-section { background: var(--bg-alt); }
.form-container {
  max-width: 700px; margin: 0 auto;
  background: #fff; padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.form-container h2 { font-size: 1.6rem; margin-bottom: 8px; text-align: center; }
.form-container .form-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px;}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 0.9rem; color: var(--text);
}
.form-group label .required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s; background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.file-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-area p { color: var(--text-light); font-size: 0.9rem; }
.file-upload-area .file-name { color: var(--success); font-weight: 600; margin-top: 8px; display: none; }

.instant-quote {
  background: var(--success-light); border: 1px solid var(--success);
  border-radius: var(--radius); padding: 16px 20px;
  margin-top: 24px; display: none;
}
.instant-quote h4 { color: var(--success); margin-bottom: 4px; }
.instant-quote .quote-price { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.instant-quote .quote-detail { color: var(--text-light); font-size: 0.85rem; }

.form-submit { width: 100%; padding: 16px; font-size: 1.1rem; margin-top: 8px; }

/* Products Page */
.products-hero {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff; padding: 60px 0; text-align: center;
}
.products-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.products-hero p { color: #94a3b8; font-size: 1.1rem; }

.product-filter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px; border-radius: 20px; border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 500;
  transition: all 0.2s; font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.3s; cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.product-image {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  position: relative; overflow: hidden;
}

/* Professional product card backgrounds by category */
.product-card[data-category="apparel"] .product-image {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #a5b4fc 100%);
}
.product-card[data-category="headwear"] .product-image {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%);
}
.product-card[data-category="bags"] .product-image {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 40%, #6ee7b7 100%);
}
.product-card[data-category="drinkware"] .product-image {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #93c5fd 100%);
}
.product-card[data-category="stationery"] .product-image {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fcd34d 100%);
}
.product-card[data-category="tech"] .product-image {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #818cf8 100%);
}

.product-image::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
}
.product-image .prod-emoji {
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.3s;
}
.product-card:hover .product-image .prod-emoji {
  transform: scale(1.08);
}

.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.9); color: var(--text);
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.7rem; font-weight: 600;
  backdrop-filter: blur(4px); z-index: 2;
}
.product-info { padding: 20px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-info .product-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.product-info .product-meta { display: flex; gap: 16px; margin-bottom: 12px; }
.product-info .product-meta span {
  font-size: 0.8rem; padding: 4px 10px; border-radius: 12px;
  background: var(--bg-alt); color: var(--text-light);
}
.product-info .product-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.product-info .product-moq { font-size: 0.85rem; color: var(--text-light); }

/* Footer */
.footer {
  background: var(--bg-dark); color: var(--text-white);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer p, .footer a { color: #94a3b8; font-size: 0.9rem; line-height: 1.8; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  text-align: center; color: #64748b; font-size: 0.85rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
.chat-toggle {
  width: 56px; height: 56px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg); border: none;
  font-size: 1.5rem; color: #fff; transition: all 0.2s;
}
.chat-toggle:hover { transform: scale(1.05); background: var(--primary-dark); }
.chat-toggle .badge-dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; background: var(--success);
  border-radius: 50%; border: 2px solid #fff;
}
.chat-panel {
  position: absolute; bottom: 72px; right: 0;
  width: 360px; height: 480px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--primary); color: #fff; padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.chat-header .chat-avatar {
  width: 36px; height: 36px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.chat-header .chat-title { font-weight: 700; }
.chat-header .chat-subtitle { font-size: 0.75rem; opacity: 0.8; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 0.9rem; line-height: 1.5; animation: fadeIn 0.3s;
}
.chat-msg.bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg .typing { display: flex; gap: 4px; }
.chat-msg .typing span {
  width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: bounce 1.4s infinite;
}
.chat-msg .typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg .typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-area {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.chat-input-area input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 24px; font-size: 0.9rem; outline: none;
}
.chat-input-area input:focus { border-color: var(--primary); }
.chat-input-area button {
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  transition: all 0.2s;
}
.chat-input-area button:hover { background: var(--primary-dark); }
.chat-quick-replies { display: flex; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.chat-quick-reply {
  padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: #fff; font-size: 0.8rem; cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.chat-quick-reply:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); } 40% { transform: scale(1); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; }
.faq-item {
  background: #fff; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.faq-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* Trusted By */
.trusted-grid {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 48px; opacity: 0.5;
}
.trusted-grid span { font-weight: 700; font-size: 1.3rem; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-lg);
  }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chat-panel { width: calc(100vw - 48px); right: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
