/* YUVA 3D — multilingual switcher, floating contact, consent banner */

/* Non-English languages get compact header rules (translated nav labels are
   longer than English; the English source keeps its original layout). */
html[lang="pt-BR"] .header-inner,
html[lang="es"] .header-inner,
html[lang="ru"] .header-inner,
html[lang="zh-Hans"] .header-inner { gap: var(--space-2); }
html[lang="pt-BR"] .nav,
html[lang="es"] .nav,
html[lang="ru"] .nav,
html[lang="zh-Hans"] .nav { gap: clamp(.5rem, .9vw, .85rem); }
html[lang="pt-BR"] .nav-link,
html[lang="es"] .nav-link,
html[lang="ru"] .nav-link,
html[lang="zh-Hans"] .nav-link { letter-spacing: .02em; font-size: .72rem; white-space: nowrap; }
html[lang="pt-BR"] .brand-sub,
html[lang="es"] .brand-sub,
html[lang="ru"] .brand-sub,
html[lang="zh-Hans"] .brand-sub { letter-spacing: .12em; font-size: .54rem; white-space: nowrap; }
html[lang="pt-BR"] .nav-cta,
html[lang="es"] .nav-cta,
html[lang="ru"] .nav-cta,
html[lang="zh-Hans"] .nav-cta { letter-spacing: .04em; font-size: .7rem; padding-inline: 1rem; white-space: nowrap; }

/* Chinese: drop the Latin letter-spacing rhythm, loosen line height slightly. */
html[lang="zh-Hans"] body { line-height: 1.8; }
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .nav-link,
html[lang="zh-Hans"] .btn,
html[lang="zh-Hans"] label,
html[lang="zh-Hans"] .card-tag,
html[lang="zh-Hans"] .family-tag,
html[lang="zh-Hans"] .market-code { letter-spacing: .06em; }
html[lang="zh-Hans"] h1 { letter-spacing: 0; line-height: 1.25; font-weight: 600; }
html[lang="zh-Hans"] h2 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
html[lang="zh-Hans"] .brand-name { letter-spacing: .18em; }
html[lang="zh-Hans"] .article-body p,
html[lang="zh-Hans"] .article-body li { line-height: 1.9; }

/* Russian: slightly tighter headings, longer words need looser tracking reset. */
html[lang="ru"] h1 { letter-spacing: -.01em; }
html[lang="ru"] .btn { letter-spacing: .06em; }
html[lang="ru"] .eyebrow { letter-spacing: .16em; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .08rem;
  margin-inline-start: .3rem;
  padding-inline-start: .5rem;
  border-inline-start: 1px solid rgba(23, 26, 31, .16);
}
.lang-switch a {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .3rem;
  border-radius: 3px;
  color: #6D737B;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.lang-switch a:hover { color: var(--accent-deep); background: rgba(232, 69, 43, .08); }
.lang-switch a.is-current { color: var(--charcoal); background: rgba(23, 26, 31, .08); }

/* footer contact lines */
.footer-contact { margin-top: 1rem; font-size: .84rem; line-height: 1.9; }
.footer-contact a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(251, 251, 249, .32); }
.footer-contact a:hover { color: var(--accent-soft); }
.footer-address { margin-top: .55rem; font-size: .76rem; line-height: 1.7; color: rgba(251, 251, 249, .62); max-width: 24rem; }

/* floating WhatsApp button (rendered only when a number is configured) */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem .95rem .62rem .72rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.wa-float svg { width: 20px; height: 20px; flex: 0 0 20px; }
.wa-float-label { line-height: 1; }

@media (max-width: 900px) {
  .lang-switch {
    margin: .4rem 0 0;
    padding: .5rem 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(23, 26, 31, .14);
    width: 100%;
  }
  .lang-switch a { font-size: .76rem; padding: .5rem .6rem; }
}
@media (max-width: 560px) {
  .wa-float-label { display: none; }
  .wa-float { padding: .7rem; right: .85rem; bottom: .85rem; }
  .wa-float svg { width: 23px; height: 23px; flex-basis: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: none; }
}

/* Header anti-overflow: 8 nav items + 5 languages + CTA */
@media (max-width: 1560px) {
  .header-inner { gap: var(--space-2); }
  .nav { gap: clamp(.5rem, .85vw, 1rem); }
  .nav-link { font-size: .7rem; letter-spacing: .05em; }
  .nav-cta { font-size: .7rem; padding-inline: 1.05rem; letter-spacing: .04em; margin-left: .5rem; }
  .lang-switch { margin-inline-start: .2rem; padding-inline-start: .45rem; }
  .lang-switch a { font-size: .62rem; padding: .3rem .28rem; }
  .brand-sub { letter-spacing: .1em; font-size: .55rem; }
}
@media (max-width: 1200px) {
  .nav { gap: .45rem; }
  .nav-link { font-size: .66rem; letter-spacing: .02em; }
  .lang-switch a { font-size: .58rem; padding: .28rem .22rem; }
}

/* phone marker in footer */
.contact-tag { display: inline-block; margin-inline-start: .5rem; padding: .05rem .4rem;
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor;
  border-radius: 3px; opacity: .7; vertical-align: .08em; }

/* ---------- Analytics consent ---------- */
.consent { display: block; position: fixed; left: 1rem; bottom: 1rem; z-index: 90; max-width: 22rem;
  background: #FBFBF9; border: 1px solid rgba(23, 26, 31, .18); border-radius: 10px;
  padding: .95rem 1.05rem; box-shadow: 0 12px 32px rgba(23, 26, 31, .14); }
.consent[hidden] { display: none !important; }
.consent p { margin: 0 0 .7rem; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); }
.consent-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; width: 100%; }
.consent-actions > * { flex: 0 0 auto; }
.consent-actions .btn { padding: .42rem .85rem; font-size: .72rem; letter-spacing: .04em; }
.consent-actions a { font-size: .72rem; color: var(--ink-mute); }
@media (max-width: 640px) { .consent { left: .6rem; right: .6rem; max-width: none; bottom: .6rem; } }
