/**
 * RevoBin - Clean-Tech Scrap Recycling & Marketplace Platform
 * Core Design Tokens & Base Stylesheet
 * 2026 Modern Aesthetic: Clean Tech • Circular Economy • Logistics
 */

:root {
  /* Brand Colors from Specification */
  --rb-primary: #075B36;
  --rb-primary-rgb: 7, 91, 54;
  --rb-primary-dark: #043A22;
  --rb-primary-light: #0C7A4A;
  
  --rb-accent: #83D600;
  --rb-accent-rgb: 131, 214, 0;
  --rb-accent-hover: #73BD00;
  --rb-accent-soft: rgba(131, 214, 0, 0.12);
  --rb-accent-subtle: #EBF8D3;

  /* Neutrals & Surfaces */
  --rb-charcoal: #121814;
  --rb-charcoal-rgb: 18, 24, 20;
  --rb-dark-surface: #18221D;
  --rb-dark-surface-elevated: #223029;
  
  --rb-surface-light: #F6F9F6;
  --rb-surface-card: #FFFFFF;
  --rb-surface-alt: #EDF3EE;
  
  /* Text Shades */
  --rb-text-main: #141F18;
  --rb-text-muted: #586B60;
  --rb-text-light: #8E9F95;
  --rb-text-white: #FFFFFF;
  
  /* Borders */
  --rb-border: #E0E8E2;
  --rb-border-light: #EEF3EF;
  --rb-border-dark: #2B3D33;

  /* Semantic */
  --rb-success: #059669;
  --rb-warning: #D97706;
  --rb-danger: #DC2626;
  --rb-info: #0284C7;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows (layered & modern) */
  --rb-shadow-sm: 0 2px 6px rgba(18, 24, 20, 0.04);
  --rb-shadow-md: 0 8px 24px -4px rgba(18, 24, 20, 0.07), 0 2px 6px -1px rgba(18, 24, 20, 0.04);
  --rb-shadow-lg: 0 20px 40px -8px rgba(18, 24, 20, 0.12), 0 4px 12px -2px rgba(18, 24, 20, 0.06);
  --rb-shadow-glow: 0 0 28px rgba(131, 214, 0, 0.28);
  --rb-shadow-primary-glow: 0 10px 30px rgba(7, 91, 54, 0.24);

  /* Radius */
  --rb-radius-sm: 8px;
  --rb-radius-md: 14px;
  --rb-radius-lg: 20px;
  --rb-radius-xl: 28px;
  --rb-radius-pill: 9999px;

  /* Transitions */
  --rb-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --rb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --rb-transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--rb-text-main);
  background-color: var(--rb-surface-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rb-text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  color: var(--rb-text-muted);
  font-size: 1rem;
}

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

a:hover {
  color: var(--rb-primary-light);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Accessible focus visible */
:focus-visible {
  outline: 3px solid var(--rb-accent);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: var(--rb-accent);
  color: var(--rb-charcoal);
}

/* Top Announcement Bar */
.announcement-bar {
  background-color: var(--rb-charcoal);
  color: #D3DFD7;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-bar a {
  color: var(--rb-accent);
}
.announcement-bar a:hover {
  text-decoration: underline;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rb-border);
  transition: all var(--rb-transition);
}

.site-header.scrolled {
  box-shadow: var(--rb-shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.brand-logo-img {
  height: 75px;
  width: auto;
  transition: transform var(--rb-transition);
}
.brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-link-rb {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--rb-text-main) !important;
  padding: 8px 14px !important;
  border-radius: var(--rb-radius-sm);
  position: relative;
  transition: color var(--rb-transition-fast), background-color var(--rb-transition-fast);
}

.nav-link-rb:hover,
.nav-link-rb.active {
  color: var(--rb-primary) !important;
  background-color: var(--rb-surface-light);
}

.nav-link-rb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--rb-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--rb-transition);
}

.nav-link-rb.active::after,
.nav-link-rb:hover::after {
  transform: scaleX(1);
}

/* Mega Dropdown */
.mega-dropdown-menu {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  box-shadow: var(--rb-shadow-lg);
  padding: 20px;
  width: 720px;
  background: #FFFFFF;
  margin-top: 10px !important;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--rb-radius-sm);
  transition: background-color var(--rb-transition-fast), transform var(--rb-transition-fast);
}
.mega-item:hover {
  background-color: var(--rb-surface-light);
  transform: translateX(4px);
}
.mega-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--rb-surface-alt);
  color: var(--rb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.mega-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rb-text-main);
  margin-bottom: 2px;
}
.mega-item-desc {
  font-size: 0.775rem;
  color: var(--rb-text-muted);
  line-height: 1.3;
  margin: 0;
}

/* Sections Global Styling */
.section-padding {
  padding: 80px 0;
}
.section-padding-sm {
  padding: 48px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--rb-radius-pill);
  background-color: var(--rb-accent-soft);
  color: var(--rb-primary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 45px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
}

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

/* Dark Section Surfaces */
.bg-charcoal {
  background-color: var(--rb-charcoal);
  color: #FFFFFF;
}
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4, .bg-charcoal h5, .bg-charcoal h6 {
  color: #FFFFFF;
}
.bg-charcoal p {
  color: #A3B5AA;
}

.bg-dark-surface {
  background-color: var(--rb-dark-surface);
}

.bg-forest-gradient {
  background: linear-gradient(135deg, var(--rb-primary-dark) 0%, var(--rb-primary) 65%, #0A693F 100%);
  color: #FFFFFF;
}
.bg-forest-gradient h1, .bg-forest-gradient h2, .bg-forest-gradient h3, .bg-forest-gradient h4 {
  color: #FFFFFF;
}
.bg-forest-gradient p {
  color: #E2EFE7;
}

/* Light Surface Alternatives */
.bg-surface-alt {
  background-color: var(--rb-surface-alt);
}
.bg-surface-card {
  background-color: var(--rb-surface-card);
}
