/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Burger to Cross transition (mobile navigation) */
.burger-button {
  position: relative;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-button span {
  position: absolute;
  left: 50%;
  top: calc(50% - 1px);
  width: 1.5rem;
  height: 2px;
  background-color: #182C56; /* fargo-navy */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.burger-button span:nth-child(1) {
  transform: translate(-50%, -8px);
}

.burger-button span:nth-child(2) {
  transform: translate(-50%, 0);
}

.burger-button span:nth-child(3) {
  transform: translate(-50%, 8px);
}

.burger-button.is-open span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
  background-color: #ffffff;
}

.burger-button.is-open span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 0) scaleX(0);
}

.burger-button.is-open span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
  background-color: #ffffff;
}

