/* Cisco Dental — language switch bar (home page EN <-> ES)
   A full-width, single-click link above the top bar. The serif phrase
   "breathes" with a soft brass glow; motion is disabled for visitors who
   ask their device to reduce motion. */

:root { --langbar-h: 52px; }

.langbar {
  display: block;
  position: relative;
  z-index: 60;
  min-height: var(--langbar-h);
  text-decoration: none;
  color: #F4EFE2;
  background-color: #0F2A23;
  background-image:
    linear-gradient(90deg, rgba(15,42,35,0.0) 0%, rgba(231,200,135,0.10) 50%, rgba(15,42,35,0.0) 100%),
    linear-gradient(180deg, #14362D 0%, #0C221C 100%);
  border-bottom: 1px solid rgba(231,200,135,0.42);
  box-shadow: inset 0 1px 0 rgba(231,200,135,0.14);
  transition: background-color .2s ease;
}
.langbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 18px;
  min-height: var(--langbar-h);
  padding: 8px 20px;
  max-width: 1280px; margin: 0 auto;
  text-align: center;
}

/* The pulsing phrase */
.langbar__title {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 3px 18px 4px;
  border: 1px solid rgba(231,200,135,0.55);
  border-radius: 999px;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic; font-weight: 600;
  font-size: 1.32rem; line-height: 1.25; letter-spacing: 0.01em;
  color: #E7C887;
  background: rgba(231,200,135,0.06);
  animation: langbar-breathe 2.8s ease-in-out infinite;
}
.langbar__title::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: #E7C887;
  box-shadow: 0 0 0 0 rgba(231,200,135,0.55);
  animation: langbar-dot 2.8s ease-out infinite;
}

.langbar__label {
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,226,0.72);
}
.langbar__cta {
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(244,239,226,0.90);
}
.langbar__sep { margin: 0 8px; color: rgba(231,200,135,0.7); }
.langbar__arrow { display: inline-block; margin-left: 8px; color: #E7C887; transition: transform .2s ease; }

.langbar:hover, .langbar:focus-visible { background-color: #14362D; }
.langbar:hover .langbar__title, .langbar:focus-visible .langbar__title {
  background: rgba(231,200,135,0.16); border-color: #E7C887; color: #FFF3D6;
}
.langbar:hover .langbar__cta, .langbar:focus-visible .langbar__cta { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.langbar:hover .langbar__arrow, .langbar:focus-visible .langbar__arrow { transform: translateX(4px); }
.langbar:focus-visible { outline: 2px solid #E7C887; outline-offset: -4px; }

@keyframes langbar-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,200,135,0.00); text-shadow: 0 0 0 rgba(231,200,135,0); border-color: rgba(231,200,135,0.45); }
  50%      { box-shadow: 0 0 18px 2px rgba(231,200,135,0.30); text-shadow: 0 0 14px rgba(231,200,135,0.55); border-color: rgba(231,200,135,0.95); }
}
@keyframes langbar-dot {
  0%   { box-shadow: 0 0 0 0 rgba(231,200,135,0.60); }
  70%  { box-shadow: 0 0 0 9px rgba(231,200,135,0.00); }
  100% { box-shadow: 0 0 0 0 rgba(231,200,135,0.00); }
}

/* Keep the seniors/veterans welcome badges clear of the taller page top. */
.has-langbar .honor-rail { top: calc(clamp(170px, 17vh, 188px) + var(--langbar-h)); }

@media (max-width: 768px) {
  :root { --langbar-h: 84px; }
  .langbar__inner { padding: 9px 14px; gap: 5px 12px; }
  .langbar__title { font-size: 1.18rem; }
  .langbar__cta { font-size: 0.8rem; line-height: 1.35; }
  .has-langbar .honor-rail { top: calc(max(160px, calc(260px - 14vw)) + var(--langbar-h)); }
}

@media (prefers-reduced-motion: reduce) {
  .langbar__title, .langbar__title::before { animation: none; }
  .langbar__title { border-color: rgba(231,200,135,0.95); }
  .langbar__arrow { transition: none; }
}
@media print { .langbar { display: none; } }
