/* Header / Nav / Footer / Mobile menu */

.site-header {
  border-bottom: 1px solid transparent;
  color: #fff;
  left: 0;
  overflow: visible;
  position: fixed;
  right: 0;
  top: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 50;
}

.site-header.is-scrolled,
.site-header.is-solid,
.site-header.is-menu-open {
  background: #000;
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  align-items: center;
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
}

.site-logo img {
  height: 28px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: none;
  gap: 36px;
  height: 100%;
}

.nav-link {
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 100%;
  position: relative;
  transition: color var(--transition);
  user-select: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-dropdown.is-active > .nav-link {
  color: #fff;
}

.nav-link::after {
  background: var(--color-accent);
  bottom: 17px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  align-items: center;
  display: flex;
  height: 100%;
}

/* Full-width mega panel (matches original Nuxt AppHeader) */
.nav-mega {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: var(--header-height);
  z-index: 60;
}

.nav-dropdown:hover .nav-mega,
.nav-dropdown.is-open .nav-mega {
  display: block;
}

.site-header.is-mega-open {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-mega__inner {
  padding-block: 28px;
}

.nav-mega__group + .nav-mega__group {
  margin-top: 28px;
}

.nav-mega__title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.nav-mega__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-mega__card {
  background: #252629;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 160px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
  width: 176px;
}

.nav-mega__card:hover {
  background: #303136;
  transform: translateY(-4px);
}

.nav-mega__card-media {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
  padding: 16px 20px 0;
}

.nav-mega__card-media img {
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  width: 100%;
}

.nav-mega__card:hover .nav-mega__card-media img {
  transform: scale(1.05);
}

.nav-mega__card-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 8px 16px 16px;
  text-align: center;
}

/* Solutions / Support simple tiles */
.nav-mega__simple {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-block: 32px;
}

.nav-mega__tile {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 12px;
  min-width: 176px;
  padding: 20px 32px;
  text-align: center;
  transition: border-color var(--transition), color var(--transition);
}

.nav-mega__tile:hover {
  border-color: var(--color-accent);
  color: #fff;
}

.nav-mega__tile img {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

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

.lang-switch {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 8px;
}

.lang-switch a,
.lang-switch button {
  color: rgba(255, 255, 255, 0.5);
}

.lang-switch a.is-active,
.lang-switch button.is-active {
  color: var(--color-accent);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.25);
}

.menu-toggle {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.menu-toggle span {
  background: #fff;
  display: block;
  height: 1px;
  width: 20px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background: rgba(0, 0, 0, 0.98);
  border-top: 1px solid var(--color-border);
  display: none;
  left: 0;
  padding: 24px 20px 40px;
  position: fixed;
  right: 0;
  top: var(--header-height);
  z-index: 49;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a,
.mobile-menu button {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 16px;
  padding: 14px 0;
  text-align: left;
  width: 100%;
}

.mobile-menu button.mobile-menu__toggle {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mobile-menu__toggle > span:first-child {
  flex: 1;
  min-width: 0;
}

.mobile-menu__toggle.is-active,
.mobile-menu a.is-active {
  color: #fff;
}

.mobile-menu__chevron {
  border-right: 1.5px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
  display: block;
  flex-shrink: 0;
  height: 8px;
  margin-left: 12px;
  margin-right: 4px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  width: 8px;
}

.mobile-menu__item.is-open .mobile-menu__chevron {
  transform: rotate(-135deg);
}

.mobile-menu__sub {
  display: none;
  padding: 0 0 8px 12px;
}

.mobile-menu__item.is-open > .mobile-menu__sub {
  display: block;
}

.mobile-menu__sub a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding-top: 0;
}

.site-footer {
  background: #000;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-dim);
  position: relative;
  z-index: 2;
}

.site-footer__grid {
  display: grid;
  gap: 48px;
  padding-block: 64px;
}

.site-footer__brand img {
  height: 24px;
  width: auto;
}

.site-footer__brand p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 14rem;
}

.site-footer__col h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.site-footer__col ul {
  margin-top: 16px;
}

.site-footer__col li + li {
  margin-top: 12px;
}

.site-footer__col a {
  font-size: 12px;
  transition: color var(--transition);
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__bottom {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  clear: both;
  display: block;
  position: relative;
  visibility: visible;
  width: 100%;
  z-index: 3;
}

.site-footer__bottom-inner {
  align-items: center;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 8px;
  justify-content: center;
  line-height: 1.6;
  max-width: 100%;
  padding: 24px 16px;
  text-align: center;
  width: 100%;
}

.site-footer__bottom a {
  color: inherit;
}

.site-footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 639px) {
  .site-footer__grid {
    gap: 36px;
    padding-block: 48px 40px;
  }

  .site-footer__bottom-inner {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    gap: 10px;
    padding: 20px 16px 32px;
  }
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-footer__grid {
    gap: 32px;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    padding-block: 80px;
  }
}
