/* header.css - Unified Responsive Header Styles (Mobile First) */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border-bottom: 1.5px solid #e3e8ef;
    height: 56px;
    display: flex;
    align-items: center;
  }
  
  .header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 56px;
  }
  
  .header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  
  .header-logo {
    flex: 0 0 auto;
  }
  
  /* Mobile logo positioning */
  .header-logo.mobile-logo {
    display: flex;
    order: 2;
  }
  
  .header-logo.desktop-logo {
    display: none;
  }
  
  .header-spacer {
    flex: 1;
  }
  
  /* Hide spacer on mobile since we use absolute positioning for logo */
  @media (max-width: 900px) {
    .header-spacer {
      display: none;
    }
  }
  
  .header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }
  
  .header-nav.desktop-nav {
    display: none; /* hidden by default on mobile */
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
  }
  
  /* Navigation links */
  .nav-menu a,
  .header-link {
    color: #1a73e8;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
  }
  
  .nav-menu a:hover,
  .nav-menu .current-menu-item a,
  .header-link:hover {
    background: #f3f7fb;
    color: #1558b0;
  }
  
  /* Call to Action Button */
  .header-btn {
    background: linear-gradient(90deg, #1a73e8 60%, #38bdf8 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }
  
  .header-btn:hover {
    background: #1558b0;
  }
  
  /* ------------------------------------
     Desktop Styles
  ------------------------------------ */
  @media (min-width: 601px) {
    .site-header {
      height: 68px;
    }
  
      .header-container {
    padding: 0 24px;
    height: 68px;
  }
  
  /* Reduce padding on smaller mobile screens */
  @media (max-width: 480px) {
    .header-container {
      padding: 0 8px;
    }
    
    .header-left {
      gap: 8px;
      max-width: calc(100% - 90px);
    }
    
    .header-logo.mobile-logo {
      max-width: calc(100vw - 150px);
    }
  }
  
    .header-nav.desktop-nav {
      display: flex;
      align-items: center;
      gap: 24px;
    }
  
    .header-actions {
      gap: 18px;
    }
    
    .header-right {
      gap: 12px;
    }
  
    .nav-menu a,
    .header-link,
    .header-btn {
      font-size: 1rem;
      padding: 7px 10px;
    }
  
    .header-btn {
      padding: 7px 18px;
    }
  }
  
  /* Mobile Menu Toggle */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: #334155;
}

.menu-toggle:hover {
  background: #f1f5f9;
  color: #1a73e8;
}

.menu-toggle:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.menu-toggle svg {
  display: block;
  fill: currentColor;
}

.hamburger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Styles */
@media (max-width: 900px) {
  .header-left {
    display: flex;
    flex: 1 1 auto;
    max-width: calc(100% - 100px); /* Reserve space for icons */
  }
  
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }
  
  .header-nav.desktop-nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .header-logo.mobile-logo {
    display: flex;
    flex: 0 0 auto;
    max-width: calc(100vw - 200px);
    overflow: hidden;
  }
  
  .header-logo.mobile-logo .logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .header-logo.desktop-logo {
    display: none;
  }
  
  .header-right {
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
  }
  
  /* Mobile layout: Menu - Logo - Icons */
  .header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .header-logo.mobile-logo {
    position: static;
    transform: none;
    z-index: 1;
    flex: 0 0 auto;
  }
  
  .header-actions-mobile {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
    position: relative;
  }
  
  /* Ensure proper spacing and prevent overlap */
  .header-container {
    justify-content: space-between;
  }
  
  .header-actions-desktop {
    display: none;
  }
}

/* Desktop Menu Styles */
@media (min-width: 901px) {
  .header-left {
    display: none;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .header-actions {
    display: flex;
  }
  
  .header-logo.mobile-logo {
    display: none;
  }
  
  .header-logo.desktop-logo {
    display: flex;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .header-actions-mobile {
    display: none;
  }
  
  .header-actions-desktop {
    display: flex;
  }
  
  /* Desktop Navigation Styles */
  .header-nav.desktop-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .header-nav.desktop-nav .nav-menu > li {
    position: relative;
  }
  
  .header-nav.desktop-nav .nav-menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .header-nav.desktop-nav .nav-menu > li.menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
  }
  
  .header-nav.desktop-nav .nav-menu > li:hover > a::after {
    transform: rotate(180deg);
  }
  
  .header-nav.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 32px rgba(26,115,232,0.10);
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    min-width: 220px;
    margin: 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }
  
  .header-nav.desktop-nav .nav-menu > li:hover > .sub-menu,
  .header-nav.desktop-nav .nav-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .header-nav.desktop-nav .sub-menu li {
    width: 100%;
  }
  
  .header-nav.desktop-nav .sub-menu a {
    padding: 10px 24px;
    color: #222;
    font-weight: 500;
    border-radius: 0;
    background: none;
    transition: background 0.2s, color 0.2s;
    display: block;
  }
  
  .header-nav.desktop-nav .sub-menu a:hover {
    background: #f3f7fb;
    color: #1a73e8;
  }
}
  
/* Remove old mobile menu styles - handled by mobile-navigation.css */
  
  