/* ==========================================================================
   CV WAHANA SERCOSA MANUFACTURE (WAHAS) - CREATIVE CARBON PRODUCT
   Core Design System & Theme Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Industrial Color Palette */
  --carbon-900: #0a0e17;
  --carbon-850: #0f1523;
  --carbon-800: #151d2f;
  --carbon-700: #1e293b;
  --carbon-600: #334155;
  --carbon-500: #64748b;
  --carbon-400: #94a3b8;
  --carbon-300: #cbd5e1;
  --carbon-200: #e2e8f0;
  --carbon-100: #f1f5f9;
  --carbon-50:  #f8fafc;

  /* Accent Colors */
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  
  /* WhatsApp Official Brand */
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-green-deep: #075e54;
  --wa-green-light: #dcf8c6;
  --wa-glow: rgba(37, 211, 102, 0.35);

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* Functional Tokens */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-dark-section: var(--carbon-900);
  --bg-dark-card: var(--carbon-800);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-white-muted: #cbd5e1;

  --border-light: #e2e8f0;
  --border-dark: #334155;
  --border-accent: rgba(245, 158, 11, 0.4);

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow-amber: 0 0 25px rgba(245, 158, 11, 0.3);
  --shadow-glow-wa: 0 8px 24px rgba(37, 211, 102, 0.35);

  /* Radii & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--carbon-900);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-dark {
  background-color: var(--carbon-900);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-600);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 0.85rem;
}

.section-dark .section-badge {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-400);
  border-color: rgba(245, 158, 11, 0.35);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-dark .section-title {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--carbon-300);
}

/* Industrial Grid Accents */
.carbon-pattern {
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 0),
    linear-gradient(to right, rgba(30, 41, 59, 0.4) 1px, transparent 0),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.4) 1px, transparent 0);
  background-size: 24px 24px, 48px 48px, 48px 48px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-wa {
  background: var(--wa-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background: var(--wa-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.btn-dark {
  background: var(--carbon-800);
  color: var(--text-white);
  border: 1px solid var(--carbon-600);
}

.btn-dark:hover {
  background: var(--carbon-700);
  border-color: var(--amber-500);
  color: var(--amber-400);
}

.btn-outline {
  background: transparent;
  color: var(--carbon-800);
  border: 1.5px solid var(--carbon-300);
}

.btn-outline:hover {
  background: var(--carbon-100);
  border-color: var(--carbon-800);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-custom {
  background: rgba(14, 165, 233, 0.15);
  color: var(--info);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-best {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #000;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 28px rgba(37, 211, 102, 0.8); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
}
