/**
 * MFG Machinery — Base: CSS variables, reset, base elements, layout
 */

/* ----- CSS variables ----- */
:root {
  --color-primary: #233142;
  --color-primary-light: #34495e;
  --color-accent: #2d466a;
  --color-accent-hover: #233753;
  --color-bg: #ecf0f1;
  --color-text: #2c3e50;
  --color-muted: #7f8c8d;
  --color-white: #ffffff;
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --header-height: 72px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(44, 62, 80, 0.12);
}

/* ----- Reset & base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Screen-reader-only headings */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
