/* ============================================
   PREMIUM GLOBAL HEADER
   Modern, clean SaaS-style header design
   ============================================ */

/* Typography isolation: Prevent page CSS from affecting header typography */
/* Global reset for all header elements - prevents page CSS from affecting header typography */
.premium-header,
.premium-header * {
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Additional isolation for links and buttons - ensures page CSS link styles don't affect header */
.premium-header a,
.premium-header button {
  /* These properties are explicitly set on specific classes below with !important */
  /* This block prevents any page-specific 'a' or 'button' rules from affecting header */
}

.premium-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1000;
}

.premium-header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* ============================================
   BRAND / LOGO
   ============================================ */

.premium-header__brand {
  flex-shrink: 0;
}

.premium-header__brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.premium-header__brand-link:hover {
  opacity: 0.85;
}

.premium-header__logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Desktop logo - visible by default, hidden on mobile */
.premium-header__logo--desktop {
  display: block;
}

/* Mobile logo - hidden by default, visible on mobile */
.premium-header__logo--mobile {
  display: none;
}

.premium-header__brand-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1B3A4B !important; /* Hardcoded - no CSS variable dependency */
  letter-spacing: -0.02em !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.premium-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.premium-header__nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.premium-header__nav-link {
  position: relative;
  color: #333333 !important; /* Hardcoded - no CSS variable dependency */
  text-decoration: none !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.premium-header__nav-link:hover {
  color: #4CAF50 !important; /* Hardcoded - no CSS variable dependency */
}

/* Elegant hover underline */
.premium-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4CAF50; /* Hardcoded - no CSS variable dependency */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-header__nav-link:hover::after {
  width: 100%;
}

.premium-header__nav-link--dropdown {
  cursor: pointer;
}

.premium-header__dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.premium-header__dropdown:hover .premium-header__dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.premium-header__dropdown {
  position: relative;
}

.premium-header__dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.premium-header__dropdown-menu li {
  margin: 0;
}

.premium-header__dropdown-menu a {
  display: block;
  color: #333333 !important; /* Hardcoded - no CSS variable dependency */
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0 0.5rem;
}

.premium-header__dropdown-menu a:hover {
  background: rgba(76, 175, 80, 0.08);
  color: #4CAF50 !important; /* Hardcoded - no CSS variable dependency */
  transform: translateX(2px);
}

/* ============================================
   CTA BUTTON
   ============================================ */

.premium-header__cta {
  flex-shrink: 0;
}

.premium-header__cta-button {
  display: inline-block;
  background: #4CAF50; /* Hardcoded - no CSS variable dependency */
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.premium-header__cta-button:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.premium-header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.premium-header__mobile-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #333333; /* Hardcoded - no CSS variable dependency */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-header__mobile-toggle[aria-expanded="true"] .premium-header__mobile-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.premium-header__mobile-toggle[aria-expanded="true"] .premium-header__mobile-toggle-line:nth-child(2) {
  opacity: 0;
}

.premium-header__mobile-toggle[aria-expanded="true"] .premium-header__mobile-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.premium-header__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-header__mobile-menu[aria-hidden="false"] {
  max-height: 600px;
}

.premium-header__mobile-nav {
  padding: 1.5rem 2rem;
}

.premium-header__mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.premium-header__mobile-link {
  display: block;
  color: #333333 !important; /* Hardcoded - no CSS variable dependency */
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s ease;
}

.premium-header__mobile-link:hover {
  color: #4CAF50 !important; /* Hardcoded - no CSS variable dependency */
}

.premium-header__mobile-dropdown {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.premium-header__mobile-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #333333 !important; /* Hardcoded - no CSS variable dependency */
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 1rem 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.premium-header__mobile-dropdown-trigger:hover {
  color: #4CAF50 !important; /* Hardcoded - no CSS variable dependency */
}

.premium-header__mobile-dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.premium-header__mobile-dropdown.active .premium-header__mobile-dropdown-icon {
  transform: rotate(180deg);
}

.premium-header__mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.premium-header__mobile-dropdown.active .premium-header__mobile-dropdown-menu {
  max-height: 300px;
}

.premium-header__mobile-dropdown-menu a {
  display: block;
  color: #333333 !important; /* Hardcoded - no CSS variable dependency */
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0.75rem 0;
  transition: color 0.2s ease;
}

.premium-header__mobile-dropdown-menu a:hover {
  color: #4CAF50 !important; /* Hardcoded - no CSS variable dependency */
}

.premium-header__mobile-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.premium-header__mobile-cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #4CAF50; /* Hardcoded - no CSS variable dependency */
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.premium-header__mobile-cta-button:hover {
  background: #45a049;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  .premium-header__nav-list {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .premium-header {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .premium-header__container {
    height: 70px;
    padding: 0 1.5rem;
  }

  .premium-header__logo {
    height: 36px;
  }

  /* Swap logos on mobile: hide desktop logo, show mobile white logo */
  .premium-header__logo--desktop {
    display: none !important;
  }

  .premium-header__logo--mobile {
    display: block !important;
  }

  .premium-header__brand-name {
    font-size: 1.1rem !important;
  }

  .premium-header__nav,
  .premium-header__cta {
    display: none;
  }

  .premium-header__mobile-toggle {
    display: flex;
  }

  .premium-header__mobile-toggle-line {
    background: #ffffff !important;
  }

  .premium-header__mobile-menu {
    display: block;
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .premium-header__mobile-link {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .premium-header__mobile-link:hover {
    color: #ffffff !important;
    opacity: 0.9;
  }

  .premium-header__mobile-dropdown-trigger {
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  .premium-header__mobile-dropdown-trigger:hover {
    color: #ffffff !important;
    opacity: 0.9;
  }

  .premium-header__mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .premium-header__mobile-dropdown-menu a {
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  .premium-header__mobile-dropdown-menu a:hover {
    color: #ffffff !important;
    opacity: 0.9;
  }

  .premium-header__mobile-dropdown-icon {
    stroke: #ffffff !important;
  }

  .premium-header__mobile-dropdown-icon path {
    stroke: #ffffff !important;
  }

  .premium-header__mobile-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .premium-header__container {
    padding: 0 1rem;
  }

  .premium-header__brand-name {
    font-size: 1rem !important;
  }

  .premium-header__mobile-nav {
    padding: 1.25rem 1.5rem;
  }
}
