/**
 * Nejat Ortho — Top Info Bar Widget
 * BEM root: .nejat-top-info-bar
 */

/* -----------------------------------------------------------------------
   Root — full-width ribbon
   ----------------------------------------------------------------------- */
.nejat-top-info-bar {
  background-color: #3a3a3a;
  width: 100%;
}

/* -----------------------------------------------------------------------
   Sticky modifier — always pins the bar to the top of the viewport.
   Same approach as .nejat-top-nav-widget--sticky (pure CSS, no JS).
   ----------------------------------------------------------------------- */
.nejat-top-info-bar--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}

/* -----------------------------------------------------------------------
   Inner — constrained, left-aligned row
   ----------------------------------------------------------------------- */
.nejat-top-info-bar__inner {
  max-width: var(--nejat-max-width);
  margin: 0 auto;
  padding: 0 var(--nejat-gutter);
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* -----------------------------------------------------------------------
   Item — each info chunk (phone / address / hours)
   ----------------------------------------------------------------------- */
.nejat-top-info-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #ababab;
  white-space: nowrap;
  flex-shrink: 0;
}

.nejat-top-info-bar__item a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nejat-top-info-bar__item a:hover {
  opacity: 0.8;
}

/* -----------------------------------------------------------------------
   Icon — 16×16 SVG inline icon
   ----------------------------------------------------------------------- */
.nejat-top-info-bar__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.nejat-top-info-bar__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -----------------------------------------------------------------------
   Separator — vertical divider between items
   ----------------------------------------------------------------------- */
.nejat-top-info-bar__sep {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 20px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Responsive — tablet: hide address label, keep icon + abbreviated text
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nejat-top-info-bar__inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px var(--nejat-gutter);
  }

  .nejat-top-info-bar__sep {
    display: none;
  }

  .nejat-top-info-bar__item {
    font-size: 12px;
  }

  /* Hide office hours first on smaller screens */
  .nejat-top-info-bar__item--hours {
    display: none;
  }

  /* Hide phone on mobile (already in top navigation) */
  .nejat-top-info-bar__item--phone {
    display: none;
  }

  /* Hide text link on mobile (shown in top navigation instead) */
  .nejat-top-info-bar__item--text {
    display: none;
  }

  /* Keep address visible with icon - highest priority */
}
