/* ==========================================================================
   LANGUAGE-SWITCHER.CSS — Premium Multilingual Utility Bar & Selector
   Naty Carvalho Podóloga
   ========================================================================== */

/* Top Utility Bar Container */
.top-utility-bar {
  background-color: #111111;
  color: #faf8f3;
  border-bottom: 1px solid rgba(179, 134, 45, 0.22);
  height: 36px;
  line-height: 36px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1040;
  width: 100%;
}

.top-utility-bar a {
  color: #faf8f3;
  text-decoration: none;
}

/* Location Left */
.utility-location {
  color: rgba(250, 248, 243, 0.82);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-location i {
  color: #b3862d;
  font-size: 0.8rem;
}

/* Language Selector Right */
.utility-language {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Desktop Switcher: PT | EN | ES */
.lang-switcher-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switcher-desktop i {
  color: #b3862d;
  font-size: 0.85rem;
  margin-right: 0.2rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(250, 248, 243, 0.7);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: #e7c66e;
}

.lang-btn.active {
  color: #e7c66e;
  background-color: rgba(179, 134, 45, 0.22);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #b3862d;
}

.lang-btn:focus-visible {
  outline: 2px solid #b3862d;
  outline-offset: 1px;
}

.lang-divider {
  color: rgba(250, 248, 243, 0.3);
  font-size: 0.68rem;
  user-select: none;
}

/* Mobile Language Dropdown */
.lang-mobile-toggle {
  background: transparent;
  border: 1px solid rgba(179, 134, 45, 0.35);
  color: #faf8f3;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.lang-mobile-toggle:hover,
.lang-mobile-toggle:focus {
  background: rgba(179, 134, 45, 0.15);
  border-color: #b3862d;
  color: #e7c66e;
}

.lang-dropdown-menu {
  background-color: #171615;
  border: 1px solid rgba(179, 134, 45, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 0.4rem;
  min-width: 175px;
  margin-top: 6px !important;
}

.lang-dropdown-menu .dropdown-item {
  color: rgba(250, 248, 243, 0.85);
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus {
  background-color: rgba(179, 134, 45, 0.18);
  color: #e7c66e;
}

.lang-dropdown-menu .dropdown-item.active {
  background-color: rgba(179, 134, 45, 0.28);
  color: #e7c66e;
  font-weight: 700;
}

.bg-gold-subtle {
  background-color: rgba(179, 134, 45, 0.2);
}

.text-gold {
  color: #b3862d !important;
}

/* Adjustments for fixed site-header with top-utility-bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: box-shadow 0.3s ease;
}

/* Hero & Subpage banner offsets for the added bar height */
.hero-section {
  padding-top: calc(34px + 82px + 10px) !important;
}

.page-header-banner {
  padding-top: 156px !important;
}

/* Mobile Responsive rules */
@media (max-width: 767.98px) {
  .top-utility-bar {
    height: 32px;
    line-height: 32px;
    font-size: 0.7rem;
  }

  .utility-location {
    font-size: 0.68rem;
    max-width: 65%;
  }

  .hero-section {
    padding-top: 130px !important;
  }

  .page-header-banner {
    padding-top: 145px !important;
  }
}

@media (max-width: 400px) {
  .utility-location span {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}

/* Accessibility Focus States */
.lang-btn-item:focus-visible {
  outline: 2px solid #b3862d;
  outline-offset: -2px;
}
