/* HEADER STYLES - Based on CodePen example
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Standard header styles - Fixed header for all pages */
.page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  padding: 12px 0;
  z-index: 999999999;
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.65);
  border-radius: 0 0 8px 8px;
  transition: all 0.3s ease;
}

/* Container - Full width */
.page-header .container {
  width: 100%;
  margin: 0;
  padding: 0 30px;
}

/* Navigation */
.page-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}


.page-header nav > a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Ensure all data-href elements are clickable */
.page-header [data-href] {
  cursor: pointer;
}


.page-header nav > a:hover {
  color: inherit;
}

/* Logo link color for dark background */
.page-header nav > a {
  color: white;
}

/* Company name - Large version (not used) */
.company-name-large {
  display: none;
}

/* Company name - Standard header (TTC) - always show */
.company-name-small {
  font-family: 'Bitsumishi', 'Oswald', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  text-shadow: none;
  transition: all 0.3s ease;
  display: block;
  opacity: 0.7;
}

.company-name-small:hover,
.company-name-large:hover {
  opacity: 0.8;
}

/* TTC logo link active states */
.page-header nav > a.active .company-name-small,
.page-header nav > a.active .company-name-large {
  opacity: 1;
}

/* Header divider - always show */
.header-divider {
  color: white;
  opacity: 0.15;
  font-weight: bold;
  margin: 0 0.5rem;
  display: inline;
  line-height: 1;
  vertical-align: middle;
}

/* Breadcrumbs styling - show on all pages */
#header-breadcrumbs {
  font-weight: bold;
  opacity: 0.8;
  color: white;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  padding-top: 3px !important;
  text-transform: uppercase;
}

/* SVG icons in breadcrumbs */
#header-breadcrumbs .icon {
  width: 18px;
  height: 18px;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  margin: 0 0.25rem;
}

/* Breadcrumb link styling - match TTC logo colors */
#header-breadcrumbs .breadcrumb-link {
  color: white !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: bold;
  letter-spacing: inherit;
  opacity: 0.7 !important;
}

#header-breadcrumbs .breadcrumb-link:hover {
  opacity: 0.8 !important;
  text-decoration: none;
}

/* Breadcrumb separator styling - match TTC logo opacity */
#header-breadcrumbs .breadcrumb-separator {
  color: white !important;
  opacity: 0.5 !important;
  margin: 0 0.3rem;
  font-weight: bold;
}

/* Current page breadcrumb styling - match TTC logo mouseout state */
#header-breadcrumbs .breadcrumb-current {
  color: white !important;
  opacity: 0.7 !important;
  font-weight: bold;
  letter-spacing: inherit;
}

/* Ensure all breadcrumb elements have consistent styling */
#header-breadcrumbs * {
  color: white !important;
}

/* Navigation menu - Right aligned */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  margin-left: auto;
}

.nav-menu li {
  margin: 0;
}

/* Navigation links - standard styling */
.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: none;
  opacity: 0.7;
  background: none;
}

.nav-link:hover {
  opacity: 0.8;
  background: none;
  color: white;
}

/* Contact Us link specific styling */
.nav-link.contact-link {
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px !important;
}

.nav-link.contact-link .icon {
  width: 18px;
  height: 18px;
}

/* Login link specific styling */
.nav-link.login-link {
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px !important;
}

.nav-link.login-link .icon {
  width: 18px;
  height: 18px;
}

/* Active navigation states */
.nav-link.active {
  opacity: 1;
  background: none;
  color: white;
  pointer-events: none;
  cursor: default;
}

.nav-link.active:hover {
  opacity: 1;
}

/* Active state for Contact Us and Login buttons - white background, black text */
.nav-link.contact-link.active,
.nav-link.login-link.active {
  background: white;
  color: black;
  border-color: white;
}

.nav-link.contact-link.active:hover,
.nav-link.login-link.active:hover {
  background: white;
  color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header .container {
    padding: 0 15px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-left: 0;
  }
  
  .nav-menu.mobile-open {
    display: flex;
  }
  
  .nav-menu li {
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    margin: 0;
    border-radius: 0;
    color: white;
    text-shadow: none;
  }
  
  .company-name {
    font-size: 1.4rem;
  }
  
  body:not(.home-page) .company-name {
    font-size: 1.2rem;
  }
}