/* Ape-x Mechanical — base styles */

:root {
  --color-bg: #ffffff;
  --color-fg: #1a1a1a;
  --color-dark: #141414;
  --color-accent: #c8102e;
  --color-muted: #6b6b6b;
  --max-width: 1100px;
  --space: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

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

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

/* Header */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-logo { height: 48px; width: auto; }

.site-nav a {
  color: #fff;
  margin-left: 1.5rem;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  overflow: hidden;
}

/* Left (welding) and right (grinding) image panels, cropped not stretched,
   with a ~20vw black gap between them (each panel = 50% - 10vw wide). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% - 10vw);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::before {
  left: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 1)),
    url('../media/decor/welding.jpg');
}

.hero::after {
  right: 0;
  background-image:
    linear-gradient(to left, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 1)),
    url('../media/decor/grinding.jpg');
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 0.5rem; }

.hero-title { margin: 0 0 1rem; }
.hero-logo {
  width: min(90%, 480px);
  height: auto;
  margin: 0 auto;
}

.tagline { color: #d0d0d0; font-size: 1.25rem; margin: 0 0 2rem; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #f5f5f5; }
.section h2 { font-size: 2rem; margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #cfcfcf;
  text-align: center;
  padding: 2rem 0;
}
