/* ==========================================================================
   VORTEX ECOTECH - WASTE-TO-RDF & POLYMER RECYCLING
   Core Design System & Main Stylesheet
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --primary-950: #06110d;
  --primary-900: #0a1f18;
  --primary-850: #0e2b22;
  --primary-800: #133a2e;
  --primary-700: #1c5242;
  --primary-600: #246853;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-300: #6ee7b7;
  --primary-100: #d1fae5;
  --primary-50:  #ecfdf5;

  /* Industrial Accents */
  --energy-amber: #f59e0b;
  --energy-amber-light: #fef3c7;
  --polymer-cyan: #06b6d4;
  --polymer-cyan-light: #cffafe;
  --eco-leaf: #84cc16;

  /* Neutrals & Surfaces */
  --bg-body: #f8faf9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-dark: #0a1f18;
  --bg-dark-card: #112821;
  --bg-dark-card-hover: #17352c;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-white-dim: rgba(255, 255, 255, 0.78);

  --border-light: #e2e8f0;
  --border-focus: #10b981;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-hover: rgba(52, 211, 153, 0.35);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(10, 31, 24, 0.06);
  --shadow-md: 0 6px 16px -2px rgba(10, 31, 24, 0.08), 0 2px 6px -1px rgba(10, 31, 24, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(10, 31, 24, 0.12), 0 4px 12px -2px rgba(10, 31, 24, 0.06);
  --shadow-xl: 0 20px 36px -6px rgba(10, 31, 24, 0.18), 0 8px 16px -4px rgba(10, 31, 24, 0.08);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
  --topbar-height: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
}

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

.container-fluid {
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Utilities */
.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-padding-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.bg-light { background-color: var(--bg-body); }
.bg-white { background-color: var(--bg-surface); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-white); }
.bg-dark-card { background-color: var(--bg-dark-card); color: var(--text-white); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-500) !important; }
.text-cyan { color: var(--polymer-cyan) !important; }
.text-amber { color: var(--energy-amber) !important; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white) !important; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-600);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Section Headers */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header .subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header.text-center .subtitle {
  justify-content: center;
}

.section-header .subtitle::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 2px;
}

.section-header .title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--primary-900);
  font-weight: 800;
  line-height: 1.2;
}

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

.section-header .description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 1rem;
}

.section-header.text-center .description {
  margin-left: auto;
  margin-right: auto;
}

.section-header.dark .description {
  color: var(--text-white-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-800);
}

.btn-secondary:hover {
  background: var(--primary-800);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-900);
  border-color: rgba(10, 31, 24, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  background: rgba(16, 185, 129, 0.05);
  color: var(--primary-700);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: var(--primary-400);
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-300);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8438rem;
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   Top Bar & Main Header Navigation
   ========================================================================== */
.top-bar {
  background: var(--primary-950);
  color: var(--text-white-dim);
  font-size: 0.8125rem;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.top-bar-contact a, .top-bar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-white-dim);
}

.top-bar-contact a:hover {
  color: var(--primary-400);
}

.top-bar-contact svg {
  width: 14px;
  height: 14px;
  color: var(--primary-400);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-300);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.top-bar-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-900);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a1f18 0%, #133a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-400);
  box-shadow: 0 4px 10px rgba(10, 31, 24, 0.15);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-logo span.highlight {
  color: var(--primary-500);
}

.brand-tagline {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -3px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-500);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary-500);
  border-radius: 2px;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.65rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  padding-left: 1.5rem;
}

.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 15px;
  height: 15px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.4rem 0;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  border-radius: var(--radius-sm);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Page Hero Banner (for Inner Pages)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-900) 50%, var(--primary-850) 100%);
  color: var(--text-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.page-banner-grid {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-banner h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--text-white);
  margin-bottom: 1rem;
  font-weight: 800;
}

.page-banner p {
  font-size: 1.15rem;
  color: var(--text-white-dim);
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary-300);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-950);
  color: var(--text-white-dim);
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-top {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-white-dim);
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-certifications {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-white);
  font-weight: 600;
}

.footer-widget h4 {
  color: var(--text-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--primary-500);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-white-dim);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-400);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.9375rem;
  color: var(--text-white-dim);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-400);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Newsletter in footer */
.footer-newsletter p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-right: 3.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.875rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-400);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 38px;
  background: var(--primary-500);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-400);
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.75rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-300);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .nav-menu {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-body);
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: none;
  }

  .nav-item-dropdown.open .dropdown-menu {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
