/*
 * EcoPack Solutions - Header Styles (Premium Design)
 * Version: 2.0 | Last Updated: 2026-03-14
 * Design: Modern B2B Professional
 * 
 * Usage: <link rel="stylesheet" href="components/header.css">
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary-green: #1B4332;
  --primary-green-dark: #245020;
  --primary-orange: #1B4332;
  --primary-orange-light: #D4C5A9;
  --white: #FFFFFF;
  --dark-text: #333333;
  --gray-text: #666666;
  --light-gray: #F8F8F8;
  --border-color: #E8E8E8;
  --whatsapp-green: #25D366;
}

/* ========================================
   HEADER BASE
   ======================================== */
.site-header {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   LOGO
   ======================================== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.25s ease;
  cursor: pointer;
}

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

/* Dropdown Arrow */
.nav-link::after {
  content: '▾';
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.nav-link.no-arrow::after {
  display: none;
}

.nav-item:hover .nav-link::after {
  transform: rotate(180deg);
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--dark-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--light-gray);
  color: var(--primary-green);
  padding-left: 24px;
}

/* ========================================
   HEADER ACTIONS
   ======================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Get Quote Button */
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-quote:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green);
  color: var(--white);
  transform: scale(1.05);
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--primary-green);
}

.mobile-nav .sub-item {
  padding-left: 20px;
  font-size: 14px;
  color: var(--gray-text);
}

.mobile-nav .mobile-quote-btn {
  margin-top: 15px;
  padding: 14px 20px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  border-bottom: none;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 24px;
  }
  
  .main-nav {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  
  .header-inner {
    padding: 0 20px;
  }
  
  .main-nav {
    display: none;
  }
  
  .btn-quote {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-nav {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }
  
  .btn-whatsapp {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}