/* Minimal styles for the /surface/ page chrome (header + footer + lang switch).
 * Deliberately NOT the full site style.css: that file has a global `*` reset
 * and `h1,h2 { font-family: Playfair }` which bleed into and break the
 * diagnostic result screen. Here box-sizing is scoped to .header/.footer only,
 * so the diagnostic (in <main>) renders exactly as designed in isolation.
 * Keep header/footer rules in sync with css/style.css if those change. */

:root {
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent: #efffcc;
  --radius-full: 100px;
}

.header *, .footer * { box-sizing: border-box; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid #1f2937;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }

.nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 300;
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav ul li a:hover,
.nav ul li a.active { color: var(--text-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 20px;
}
.lang-switch button {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #2a2a2a;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.lang-switch button:hover { color: var(--text-primary); }
.lang-switch button.active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.footer {
  padding: 16px 0 48px;
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo { margin-bottom: 0; }
.footer-company-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-company {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0;
}
.footer-address {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}
.footer-email { font-size: 13px; margin: 4px 0 0; }
.footer-email a { color: var(--accent); text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }
.footer-copyright {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .nav ul { display: none; }
  .nav-toggle { display: block; }
  .nav.nav-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(8px);
    padding: 16px 24px;
    border-bottom: 1px solid #1f2937;
    gap: 0;
  }
  .nav.nav-open ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav.nav-open ul li:last-child a { border-bottom: none; }
}
