/* Language switcher in the top utility bar, plus homepage availability indicator. */

.util-lang{
  color:inherit;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  font-size:inherit;
  line-height:inherit;
  white-space:nowrap;
}
.util-lang:hover,
.util-lang:focus-visible{
  color:#7a5c1e;
  text-decoration:none;
}
.util-lang:focus-visible{
  outline:2px solid #c9a24a;
  outline-offset:3px;
}

/* Desktop and tablet: the switch lives in the utility bar, so hide the
   duplicate in the main nav. At 680px and below the bar is hidden, so the
   in-menu language-link stays visible in the hamburger. */
@media (min-width:681px){
  header nav li:has(> a.language-link){display:none}
}

.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:none;
}

/* Tablet and smaller: the nav is already in the hamburger; keep the call button in the top bar. */
@media (max-width:1120px){
  .header-actions{order:2}
  header .callbtn{order:initial}
}

/* Phone grid is brand | actions | menu */
@media (max-width:680px){
  header .header-actions{
    grid-column:2;
    grid-row:1;
    gap:6px;
  }
  header .callbtn{
    grid-column:auto !important;
    grid-row:auto !important;
  }
  header .menu{grid-column:3;grid-row:1}
}

/* Homepage availability: green dot + visible text, not color alone. */
.availability{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.04em;
  line-height:1.2;
  color:#0f7a3f;
  text-transform:none;
}
.availability-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#1aa34a;
  box-shadow:0 0 0 3px rgba(26,163,74,.22);
  flex:none;
}
.availability-text{color:inherit}

/* Header call button on the homepages keeps the phone number visible with the status. */
body.is-home header .callbtn.callbtn-live,
html[lang="es"] body.is-home header .callbtn.callbtn-live{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  padding:8px 16px;
  min-height:44px;
}
body.is-home header .callbtn.callbtn-live .availability{
  color:#7ddea3;
}
body.is-home header .callbtn.callbtn-live .availability-dot{
  background:#3ee37a;
  box-shadow:0 0 0 3px rgba(62,227,122,.25);
}
body.is-home header .callbtn.callbtn-live .l{display:none}
body.is-home header .callbtn.callbtn-live .p{
  font-size:16px !important;
  line-height:1.2;
}
body.is-home header .callbtn.callbtn-live .p::after{content:none !important}

@media (max-width:680px){
  body.is-home header .callbtn.callbtn-live{
    padding:6px 10px;
    align-items:flex-start;
  }
  body.is-home header .callbtn.callbtn-live .availability{font-size:10px}
  body.is-home header .callbtn.callbtn-live .p{font-size:12px !important}
}

/* Hero phone CTA on the homepages */
.acts .cta.ghost.cta-available,
a.cta-available{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
}
.acts .cta.ghost .availability,
a.cta-available .availability{
  color:#0f7a3f;
  background:rgba(26,163,74,.12);
  border:1px solid rgba(26,163,74,.35);
  border-radius:100px;
  padding:4px 10px 4px 8px;
}
