/* FILE: public/assets/evartemova-header.css
 * VERSION: 2.0.0
 * PURPOSE: Canonical evartemova.com site header and footer styles shared by Astro and imported static pages.
 * NOTE: The class names match the canonical site-shell.mjs renderer; no page owns a private shell stylesheet.
 * CHANGE_SUMMARY: v2.0.0 - Unified Astro and imported-page shell classes under one shared stylesheet.
 * CHANGE_SUMMARY: v1.3.0 - Matched imported Russian pages to the shared expanded SiteFooter structure.
 * CHANGE_SUMMARY: v1.2.0 - Replaced the horizontal language pills with the native compact dropdown.
 * CHANGE_SUMMARY: v1.1.0 - Added .ev-footer block (same design as SiteFooter.astro v2.0.0).
 */

.site-header {
  background: color-mix(in srgb, #ffffff 75%, transparent);
  border-bottom: 1px solid rgba(0, 164, 189, 0.15);
  color: #071421;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 164, 189, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header__inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 1fr) auto auto;
  margin: 0 auto;
  max-width: 76rem;
  min-height: 4rem;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
}

.site-header__inner > * {
  min-width: 0;
}

.site-header__brand {
  color: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.site-header__nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.site-header__link {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.55rem 0.72rem;
  text-decoration: none;
  transition: all 200ms ease;
}

.site-header__link:hover,
.site-header__link.is-active {
  background: linear-gradient(135deg, rgba(192, 22, 100, 0.12), rgba(0, 164, 189, 0.08));
  border-color: rgba(0, 164, 189, 0.35);
  color: #006170;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 164, 189, 0.15);
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  border: 1px solid rgba(7, 20, 33, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  list-style: none;
  min-width: 3.25rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  background: #ffffff;
  border: 1px solid rgba(7, 20, 33, 0.18);
  border-radius: 0.875rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
  display: grid;
  inset-inline-end: 0;
  min-width: 11rem;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  z-index: 120;
}

.language-link {
  border-radius: 0.625rem;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.625rem 0.75rem;
  text-align: start;
  text-decoration: none;
}

.language-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.language-link.is-active {
  background: #c01664;
  color: #ffffff;
}

@media (max-width: 44rem) {
  .site-header__inner {
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.55rem;
  }

  .site-header__nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
    scrollbar-width: none;
    width: 100%;
  }

  .site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .site-header__link {
    flex: 0 0 auto;
    font-size: 0.875rem;
    padding-block: 0.5rem;
    padding-inline: 0.625rem;
  }
}

/* ── Footer (matches the shared SiteFooter structure) ── */
.site-footer {
  background: #081d2c;
  color: #f9fafb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0;
}

.site-footer__inner {
  margin: 0 auto;
  max-width: 76rem;
  padding: 3.5rem clamp(1rem, 4vw, 2rem) 1.75rem;
}

.site-footer__directory {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
}

.site-footer__column h3 {
  color: #f9fafb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  font-size: 0.9rem;
  gap: 0.5rem;
  line-height: 1.35;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #b7e23a;
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline: 2px solid #f9fafb;
  outline-offset: 3px;
}

@media (max-width: 70rem) {
  .site-footer__directory {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .site-footer__directory {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    margin-top: 2rem;
  }
}
