/* ================================================================
   HEADER — BASE STYLES
   ================================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: height var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.site-header.is-scrolled {
  height: calc(var(--header-height) - 12px);
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: var(--border-chrome);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* ── Logo ── */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__brand-tag {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  line-height: 1.6;
  transition: all var(--transition-fast);
}

.header__brand-tag--trade {
  color: var(--accent-trade-light);
  border-color: var(--accent-trade);
}

.header__brand-tag--metal {
  color: var(--chrome-light);
  border-color: var(--chrome);
}

/* ── Nav ── */
.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--chrome-gradient);
  transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--chrome-light);
}

.header__nav-link:hover::after,
.header__nav-link.is-active::after {
  width: 100%;
}

/* ── Trade header accent ── */
.site-header--trade .header__nav-link:hover,
.site-header--trade .header__nav-link.is-active {
  color: var(--accent-trade-light);
}

.site-header--trade .header__nav-link::after {
  background: linear-gradient(90deg, var(--accent-trade), var(--accent-trade-light));
}

/* ── Switch button ── */
.header__switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.header__switch-btn:hover {
  color: var(--chrome-light);
  border-color: var(--border-chrome);
  background: rgba(200, 200, 200, 0.05);
}

/* Mobile switch item: hidden on desktop */
.header__nav-switch-mobile {
  display: none;
}

/* ── Language (main header) ── */
.header__lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__lang-current {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--chrome);
  padding: 4px 10px;
  border: 1px solid var(--border-chrome);
  border-radius: var(--radius-full);
}

/* ── Main header variant ── */
.site-header--main {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header--main.is-scrolled {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--border-subtle);
}

.site-header--main .header__inner {
  justify-content: space-between;
}

.site-header--main .header__logo img {
  height: 44px;
}

/* ── Hamburger (mobile) ── */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--chrome);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer__top {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  border-color: var(--border-chrome);
  color: var(--chrome-light);
  background: rgba(200, 200, 200, 0.05);
}

.footer__heading {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.footer__links li + li {
  margin-top: var(--space-sm);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--chrome-light);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer__contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--chrome-dark);
}

.footer__contact-list a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__contact-list a:hover {
  color: var(--chrome-light);
}

.footer__contact-group-label {
  display: block !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chrome-dark);
  padding-top: var(--space-sm);
  margin-bottom: -4px;
}

.footer__contact-group-label--trade {
  color: var(--accent-trade, #4a7fa5);
}

.footer__contact-divider {
  display: block !important;
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0;
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
}

.footer__copyright {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── Products page footer (white bg → dark footer still) ── */
body.products-page .site-footer {
  margin-top: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-lg) 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    pointer-events: none;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
  }

  .header__switch-btn {
    display: none;
  }

  .header__nav-switch-mobile {
    display: block;
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }

  .header__nav-link--switch {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
  }

  .header__nav-link--switch:hover {
    color: var(--chrome-light);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
