/*
 * Locale layer added on top of theme.css (2026-09-28).
 * Spec: docs/superpowers/specs/2026-09-28-site-i18n-design.md
 */

/* === Headings on ru/kk (spec 7) === */
/* Archivo has no Cyrillic (Google Fonts serves latin, latin-ext, vietnamese
   only), so ru/kk headings use Inter, which covers the Kazakh letters. */
:root:lang(ru),
:root:lang(kk) {
  --font-heading: 'Inter', sans-serif;
}

/* === Language switcher (spec 5) === */
header nav ul .lang-switcher {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 0.5rem;
}
header nav ul .lang-switcher a,
header nav ul .lang-switcher span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}
header nav ul .lang-switcher a { color: var(--text-muted-dark); }
header nav ul .lang-switcher a:hover { color: var(--text-on-dark); }
header nav ul .lang-switcher span[aria-current] {
  color: var(--text-on-dark);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
header nav ul .lang-switcher a:focus-visible {
  outline: 2px solid var(--text-on-dark);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  header nav ul .lang-switcher { margin: 0.5rem 0 1rem; justify-content: center; }
}

/* === Tablet widths (final review 2026-09-28) === */
/* The theme's repeat(4, 1fr) grid lets the longest word set a minimum width:
   "Техническая поддержка и мониторинг" pushed the ru page to 1033px. Four
   columns only where they fit, two below; the mobile rule (≤700px) stays. */
@media (min-width: 1101px) {
  #home .how_we_work .cards_container .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  #home .how_we_work .cards_container .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3rem 2rem;
  }
}
#home .how_we_work .cards_container .cards .card h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
/* The desktop nav starts at 701px; with the language switcher it no longer
   fits there, and the company name and "About Us" broke onto two lines. */
@media (min-width: 701px) and (max-width: 1000px) {
  header .company .name,
  header nav ul a { white-space: nowrap; }
  header nav ul { gap: 0.6rem; }
  header nav ul a { font-size: 0.8rem; }
  header nav ul .lang-switcher { margin-left: 0.25rem; gap: 0.35rem; }
}
/* 701–800px: the kk menu still ran 20px past the edge; the logo image stays
   (it carries alt="FGP Group"), the repeated name next to it goes. */
@media (min-width: 701px) and (max-width: 800px) {
  header { padding-left: 1rem; padding-right: 1rem; }
  header .company .name { display: none; }
}
/* Footer columns sit in one flex row with a 4rem gap; the kk "Әлеуметтік
   желілер" column ran past the edge below 750px. Let columns wrap there. */
@media (min-width: 701px) and (max-width: 1000px) {
  footer .top { gap: 2rem; flex-wrap: wrap; }
}
