/* EN | ES toggle + service-area chips for the K & C previews. Uses each site's own tokens (--accent, --dark, --line), so A (teal/amber) and B (navy/coral) both match. */

/* ---- language toggle: segmented pill, 44px tap targets, always in the header ---- */
.lang-toggle { display: inline-flex; flex: none; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.lang-toggle button { appearance: none; min-width: 42px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dark); font: 700 .82rem/1 var(--font-body, inherit); letter-spacing: .06em; cursor: pointer; transition: background-color .22s ease, color .22s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.lang-toggle button:active { transform: scale(.94); }
.lang-toggle button.on, .lang-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.lang-toggle button:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.lt-d { display: none; }
.lt-m { display: inline-flex; }
@media (min-width: 900px) { .lt-d { display: inline-flex; } .lt-m { display: none; } }
@media (max-width: 899px) {
  .m-actions { gap: 6px; }
  .lang-toggle { padding: 2px; }
  .lang-toggle button { min-width: 38px; min-height: 36px; padding: 0 8px; }
}
/* very narrow phones: shrink the logo a touch so logo + EN|ES + Call + menu all fit on one row */
@media (max-width: 420px) {
  .top-in { gap: 8px; }
  .brand-logo { height: 44px; max-width: 128px; }
  .m-call { padding: 0 12px; }
}

/* ---- Areas we serve: chips with a pin, staggered reveal ---- */
#area .cities { gap: 10px 10px; align-content: flex-start; }
#area .cities li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; font-weight: 500; line-height: 1.2; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: #fff; transition: transform .22s ease, border-color .22s ease, background-color .22s ease; }
#area .cities li::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--accent); -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat; --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12zm0-9a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); }
#area .cities li:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255, 255, 255, .13); }
@media (prefers-reduced-motion: no-preference) {
  #area .cities.cities-anim li { opacity: 0; transform: translateY(10px) scale(.97); }
  #area .cities.cities-anim.cities-in li { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1), border-color .22s ease, background-color .22s ease; transition-delay: calc(var(--i, 0) * 45ms); }
  #area .cities.cities-anim.cities-in li:hover { transform: translateY(-2px); transition-delay: 0s; }
}
@media (min-width: 900px) { #area .area { align-items: center; } }

/* footer: service-area line */
.foot-areas { margin: 10px 0 0; max-width: 46ch; color: var(--muted-on-dark, #a9b6bb); font-size: .95rem; line-height: 1.5; }

/* ---- Spanish runs ~25% longer: keep buttons and the hero from overflowing ---- */
html[lang^="es"] .btn, html[lang^="es"] .way, html[lang^="es"] .bar a { overflow-wrap: anywhere; }
html[lang^="es"] .btn-lg { white-space: normal; text-align: center; line-height: 1.25; }
html[lang^="es"] .nav a { padding: 0 9px; }
html[lang^="es"] .bar a { font-size: .95rem; padding: 0 6px; text-align: center; line-height: 1.15; }
html[lang^="es"] .bar .bar-quote { font-size: .92rem; }
@media (max-width: 899px) { html[lang^="es"] .hero-full h1 { overflow-wrap: break-word; hyphens: auto; } }
@media (min-width: 900px) { html[lang^="es"] .hero-full h1 { font-size: clamp(2.6rem, 1rem + 3.9vw, 4.1rem) !important; } }

/* ---- v2 (Jude 10/11): one bold "Español" / "English" button instead of the subtle EN|ES pill ---- */
.lang-toggle { padding: 0; border: 0; background: transparent; box-shadow: none; }
.lang-toggle button, .lang-toggle button.on, .lang-toggle button[aria-pressed] { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--dark); font: 800 .9rem/1 var(--font-body, inherit); letter-spacing: .01em; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); animation: lt-pulse 2.4s ease-out 1.2s 2; }
.lang-toggle button:hover { filter: brightness(1.06); }
@keyframes lt-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (max-width: 899px) { .lang-toggle button, .lang-toggle button.on, .lang-toggle button[aria-pressed] { min-height: 36px; padding: 0 10px; font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) { .lang-toggle button { animation: none; } }
/* no "Illustration" tags on this site (Jude 10/11) */
.ill-tag { display: none !important; }
