/* Redesigned Header for Transport - Fy Anna Podjacka */
/* Layered editorial masthead with centered icon-only logo */

.eo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(245, 243, 239, 0.98) 0%,
    rgba(250, 248, 245, 0.96) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========== TOP UTILITY STRIP ========== */

.eo-header__utility {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(212, 165, 116, 0.08);
}

.eo-header__utility-inner {
  text-align: center;
}

.eo-header__utility-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.52);
  margin: 0;
  transition: color var(--transition-base);
}

.eo-header:hover .eo-header__utility-text {
  color: rgba(0, 0, 0, 0.68);
}

/* ========== CENTERED LOGO SECTION ========== */

.eo-header__logo-section {
  padding: var(--space-2) 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.eo-header__logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.eo-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.25);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.eo-header__logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(246, 182, 101, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.eo-header__logo:hover {
  background: rgba(212, 165, 116, 0.18);
  border-color: rgba(212, 165, 116, 0.35);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15);
}

.eo-header__logo:hover::before {
  opacity: 1;
}

.eo-header__logo-icon {
  width: 40px;
  height: 40px;
  animation: logoLineReveal 1.2s ease-out forwards;
}

@keyframes logoLineReveal {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.eo-header__logo-accent {
  animation: shimmerStroke 3s ease-in-out infinite;
  transform-origin: 50px 38px;
}

@keyframes shimmerStroke {
  0%, 100% {
    stroke-dasharray: 30, 30;
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    stroke-dashoffset: -30;
  }
}

@media (hover: none) {
  .eo-header__logo-accent {
    animation: none;
  }
}

/* ========== NAVIGATION SECTION ========== */

.eo-header__nav-section {
  position: relative;
  border-bottom: none;
}

.eo-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-xl);
}

.eo-header__nav-divider {
  flex-shrink: 0;
  width: 1px;
  height: 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 165, 116, 0.4) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.eo-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.eo-header__nav-item {
  position: relative;
}

.eo-header__nav-item a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  border-radius: var(--radius-sm);
}

.eo-header__nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #D4A574 50%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.eo-header__nav-item a:hover {
  color: #D4A574;
  background: rgba(212, 165, 116, 0.08);
}

.eo-header__nav-item a:hover::after {
  transform: scaleX(1);
}

/* Contact link outside main nav */

.eo-header__contact-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 1);
  background: linear-gradient(135deg, #D4A574 0%, #B8924F 100%);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.eo-header__contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.eo-header__contact-link::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.eo-header__contact-link:hover {
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.3);
  transform: translateY(-2px);
}

.eo-header__contact-link:hover::before {
  opacity: 1;
}

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

.eo-header__menu-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 51;
}

.eo-header__menu-toggle-bar {
  width: 22px;
  height: 2px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.eo-header__menu-toggle[aria-expanded="true"] .eo-header__menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.eo-header__menu-toggle[aria-expanded="true"] .eo-header__menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.eo-header__menu-toggle[aria-expanded="true"] .eo-header__menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .eo-header__utility-text {
    font-size: 0.7rem;
  }

  .eo-header__logo-section {
    padding: var(--space-sm) 0;
  }

  .eo-header__logo {
    width: 56px;
    height: 56px;
  }

  .eo-header__logo-icon {
    width: 36px;
    height: 36px;
  }

  .eo-header__nav-section {
    position: relative;
    overflow: hidden;
  }

  .eo-header__menu-toggle {
    display: flex;
    position: relative;
    margin-left: auto;
    transform: translateY(4px);
  }

  .eo-header__nav-inner.container-wide {
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    min-height: 0;
  }

  .eo-header__nav-divider {
    display: none;
  }

  .eo-header__nav-list {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
    background: linear-gradient(135deg, rgba(245, 243, 239, 0.98) 0%, rgba(250, 248, 245, 0.96) 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    transition: right var(--transition-base);
    overflow-y: auto;
    z-index: 50;
    justify-content: flex-start;
  }

  .eo-header__nav-list--open {
    right: 0;
  }

  .eo-header__nav-section.eo-header__nav-list--open,
  .eo-header__nav-section--open {
    position: fixed;
    inset: 0;
    z-index: 49;
    overflow: visible;
  }

  .eo-header__nav-item a {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    margin: var(--space-xs) 0;
  }

  .eo-header__nav-item a:hover {
    background: rgba(212, 165, 116, 0.12);
    color: #D4A574;
  }

  .eo-header__nav-item a::after {
    display: none;
  }

  .eo-header__contact-link {
    display: none;
  }
}

/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
  .eo-header__logo,
  .eo-header__logo-icon,
  .eo-header__nav-item a,
  .eo-header__contact-link,
  .eo-header__menu-toggle-bar,
  .eo-header__logo-accent {
    animation: none;
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .eo-header {
    background: linear-gradient(
      180deg,
      rgba(30, 30, 36, 0.98) 0%,
      rgba(35, 35, 42, 0.96) 100%
    );
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .eo-header__utility {
    background: rgba(212, 165, 116, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .eo-header__utility-text {
    color: rgba(255, 255, 255, 0.55);
  }

  .eo-header__utility:hover .eo-header__utility-text {
    color: rgba(255, 255, 255, 0.72);
  }

  .eo-header__logo-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .eo-header__nav-divider {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(212, 165, 116, 0.35) 50%,
      transparent 100%
    );
  }

  .eo-header__nav-item a {
    color: rgba(255, 255, 255, 0.75);
  }

  .eo-header__nav-item a:hover {
    color: #F6B665;
  }

  .eo-header__menu-toggle-bar {
    background: rgba(255, 255, 255, 0.75);
  }

  @media (max-width: 768px) {
    .eo-header__nav-list {
      background: linear-gradient(135deg, rgba(30, 30, 36, 0.98) 0%, rgba(35, 35, 42, 0.96) 100%);
      border-left-color: rgba(255, 255, 255, 0.12);
    }

    .eo-header__nav-item a:hover {
      background: rgba(212, 165, 116, 0.15);
    }
  }
}

