/* ========================================
   HEADER LAYOUT - Bootstrap Integration
   ======================================== */

:root {
  --site-header-height: 5rem;
}

/* Site Header */
.site-header {
  background-color: var(--bs-dark);
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: var(--site-header-height);
}

/* Navbar Customization */
.navbar {
  background-color: var(--bs-dark) !important;
  box-shadow: var(--shadow-xs);
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  padding: var(--space-9) var(--space-11);
}

.navbar.sticky-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Sticky navbar with scroll effect */
.navbar.sticky-top.scrolled {
  height: 5rem;
  box-shadow: var(--shadow-card) rgba(0, 0, 0, 0.1);
}

/* Logo/Branding */
.navbar-brand {
  padding: 0;
  margin-right: var(--space-17);
  flex-shrink: 0;
}

.navbar-brand .logo-img {
  width: 207px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.navbar-brand:hover {
  opacity: 1;
  transition: opacity var(--transition-base);
}

.custom-nav {
  margin: auto;
  justify-content: center;
}
/* Navigation Menu */
.navbar-nav {
  gap: var(--space-7);
  align-items: center;
  flex-direction: row;
}

/* Header Strip Section */
.header-strip {
  background-color: #dbdbdb;
  height: 3.5rem;
  display: flex;
  align-items: center;
}

.header-strip-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-9);
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
}

.logo-container {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  justify-content: center;
}

.logo-container li {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.logo-container li::after {
  content: "";
  width: 0.0625rem;
  background-color: var(--neutral-600);
  height: 1.25rem;
}

.logo-container li:last-child::after {
  display: none;
}

.logo-container li img {
  max-width: 4.75rem;
  height: auto;
  max-height: 1.5rem;
}

.strip-text-before,
.strip-text-after {
  color: var(--neutral-800);
  font-size: var(--font-size-header-strip);
  font-weight: 400;
  font-family: var(--font-family-sans);
  line-height: 1.5;
  white-space: nowrap;
}

.strip-text-before a,
.strip-text-after a {
  font-weight: 500;
  color: var(--neutral-800);
  text-decoration: underline;
  transition: opacity var(--transition-base);
}

.strip-text-before a:hover,
.strip-text-after a:hover {
  opacity: 0.7;
}

.custom-link-list {
  display: flex;
  margin-left: auto;
}
.custom-link-list .btn {
  font-weight: 400;
  height: 2.5rem;
  border-radius: var(--radius-2xl);
}
/* Custom Navbar Toggler (Mobile Hamburger) */
.navbar-toggler.custom-navbar-toggler {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all var(--transition-base);
  position: relative;
}

.navbar-toggler.custom-navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid rgba(var(--bs-primary-25-rgb), 0.5);
  outline-offset: var(--space-1);
}

/* Hamburger Icon - Visible by default */
.navbar-toggler.custom-navbar-toggler .hamburger-icon {
  width: var(--space-14);
  height: var(--space-14);
  display: block;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
  opacity: 1;
  visibility: visible;
}

/* Hamburger lines color */
.navbar-toggler.custom-navbar-toggler .hamburger-icon .hamburger-line {
  fill: var(--bs-primary-25);
}

/* Close Icon - Hidden by default */
.navbar-toggler.custom-navbar-toggler .close-icon {
  width: var(--space-14);
  height: var(--space-14);
  display: block;
  position: absolute;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
  opacity: 0;
  visibility: hidden;
}

/* Close icon lines color */
.navbar-toggler.custom-navbar-toggler .close-icon .close-line {
  stroke: var(--bs-primary-25);
}

/* When menu is expanded, hide hamburger and show close icon */
.navbar-toggler.custom-navbar-toggler[aria-expanded="true"] .hamburger-icon {
  opacity: 0;
  visibility: hidden;
}

.navbar-toggler.custom-navbar-toggler[aria-expanded="true"] .close-icon {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1440px) {
  .navbar-brand {
    margin-right: var(--space-5);
  }
  .custom-link-list .btn {
    font-size: 0.85rem;
  }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .header-strip-block {
    gap: var(--space-11);
  }

  .logo-container {
    gap: var(--space-7);
  }

  .logo-container li {
    gap: var(--space-7);
  }
  .custom-link-list {
    display: none;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 5rem;
  }

  .navbar-nav {
    gap: var(--space-5);
    margin-top: var(--space-7);
    flex-direction: row;
  }

  .header-strip {
    height: 3.5rem;
  }

  .header-strip-block {
    gap: var(--space-7);
  }

  .logo-container {
    gap: var(--space-5);
  }

  .logo-container li {
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .header-strip {
    height: 2.5rem;
  }

  .header-strip-block {
    gap: var(--space-5);
  }

  .logo-container {
    gap: var(--space-3);
  }

  .logo-container li {
    gap: var(--space-3);
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 5rem;
    padding: var(--space-9) 0.8rem;
  }

  .header-strip {
    height: auto;
    min-height: 2.75rem;
    padding: var(--space-4) var(--space-3);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .header-strip-block {
    gap: var(--space-2);
    flex-wrap: wrap;
    width: fit-content;
    min-width: 100%;
    justify-content: center;
    padding: 0 var(--space-3);
  }

  .strip-text-before,
  .strip-text-after {
    font-size: var(--font-size-header-strip);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .logo-container {
    gap: var(--space-2);
    width: auto;
    flex-wrap: nowrap;
  }

  .logo-container li {
    gap: var(--space-2);
    flex: 0 0 auto;
    justify-content: center;
  }

  .logo-container li::after {
    content: "";
    width: 0.0625rem;
    background-color: var(--neutral-600);
    height: 0.875rem;
    flex-shrink: 0;
  }

  .logo-container li:last-child::after {
    display: none;
  }

  .logo-container li img {
   
    height: auto;
    max-height: 1rem;
  }
}
@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-toggler {
    display: none;
  }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .dropdown-item,
  .navbar-brand {
    transition: none;
  }
}
