/* Sander CNC-Technik — site stylesheet
   Dark industrial look with green accents, after the approved homepage design. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050607;
  --bg-header: rgba(5, 6, 7, 0.82);
  --bg-elevated: #101214;
  --bg-contact: #111315;
  --surface: #e8e8e8;
  --surface-2: #f7f7f7;
  --white: #ffffff;
  --text: #f4f5f6;
  --text-muted: #c5c7c8;
  --text-dim: #8b8f92;
  --text-dark: #1b1c1e;
  --text-dark-muted: #4f5458;
  --accent: #009848;
  --accent-2: #00b355;
  --accent-hover: #00c25c;
  --accent-soft: rgba(0, 152, 72, 0.16);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(0, 0, 0, 0.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius-pill: 999px;
  --radius-box: 18px;
  --header-h: 84px;
  --max: 1180px;
  --pad: 40px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: 0.18s ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ========== Header ========== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0));
}
.site-header.is-inner {
  position: sticky;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 52px;
  height: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-sub {
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-top: 3px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.site-nav a {
  color: #ececec;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: #fff;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-dark {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn .arrow { font-size: 13px; translate: 0 0.5px; }

.btn-cta {
  margin-left: 18px;
  padding: 10px 16px 10px 18px;
  color: var(--accent-2);
  border-color: var(--accent);
}
.btn-cta .arrow {
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  margin: 0 auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 640px;
  padding: calc(var(--header-h) + 36px) 0 36px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #050607;
  overflow: hidden;
}
.hero-media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 60% center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Very soft fade at the far left only, so text sits in the machine. */
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 18%,
    transparent 36%);
}

.hero-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: calc(640px - var(--header-h) - 72px);
}
.hero-copy { max-width: 680px; padding-top: 18px; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.05rem, 3.7vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero h1 .accent {
  color: var(--accent);
  display: inline;
}
.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #d0d2d4;
  font-weight: 400;
}

.hero-features {
  margin-top: auto;
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.2fr;
  gap: 8px;
  max-width: 840px;
}
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  padding-right: 16px;
}
.feature + .feature {
  padding-left: 22px;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.feature-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-icon svg { width: 100%; height: 100%; display: block; }
.feature h2 {
  margin: 2px 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #c8cbce;
  font-weight: 400;
}

/* ========== Services + contact ========== */
.services {
  background: var(--surface);
  color: var(--text-dark);
  padding: 36px 0 28px;
}
.services-grid {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr 1.55fr;
  gap: 28px 32px;
  align-items: stretch;
}
.service h2,
.service h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dark-muted);
}
.service .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service .more:hover { color: #007a39; }
.iso-line {
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}

.contact-box {
  background: var(--bg-contact);
  color: #fff;
  border-radius: var(--radius-box);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 22px 8px;
  min-height: 100%;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 6px 22px;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.contact-item:hover { color: #fff; }
.contact-item + .contact-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.contact-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.contact-ico svg { width: 18px; height: 18px; }
.contact-item .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfd1d3;
}
.contact-item .value {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ========== Industries ========== */
.industries {
  background: var(--surface-2);
  border-top: 1px solid #ececec;
  padding: 16px 0;
}
.industries-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 0;
  color: #3a3d40;
  font-size: 13.5px;
}
.industries-lead {
  font-weight: 500;
  margin-right: 8px;
}
.industries-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.industries-list li {
  padding: 4px 16px;
  position: relative;
  font-weight: 500;
}
.industries-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 14px;
  background: #c5c5c5;
}

/* ========== Footer ========== */
.site-footer {
  background: #070809;
  color: #b8bbbe;
  padding: 42px 0 24px;
  font-size: 14px;
}
.footer-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.site-footer p, .site-footer address {
  margin: 0 0 8px;
  font-style: normal;
  line-height: 1.6;
}
.site-footer a { color: #d0d2d4; }
.site-footer a:hover { color: #fff; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0 0 6px; }
.footer-bottom {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: #8a8e91;
  font-size: 13px;
}

/* ========== Inner pages ========== */
.page-main {
  background: var(--surface-2);
  color: var(--text-dark);
  min-height: 60vh;
}
.page-hero {
  background: var(--bg);
  color: #fff;
  padding: calc(var(--header-h) + 36px) 0 40px;
}
.site-header.is-inner + .page-hero,
.page-hero.compact {
  padding: 36px 0 32px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  max-width: 42em;
  color: #c8cbce;
  font-size: 1.05rem;
}
.page-body {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding: 48px 0 72px;
}
.page-body h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  margin: 1.6em 0 0.45em;
  font-size: 1.08rem;
}
.page-body p { margin: 0 0 1em; }
.page-body ul, .page-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.page-body li { margin: 0 0 0.4em; }
.prose { max-width: 46rem; }
.prose-wide { max-width: 58rem; }

.legal {
  max-width: 48rem;
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.4em;
}
.legal h3 {
  font-size: 1.02rem;
  margin-top: 1.5em;
}
.legal .caps {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.spec-list {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
  display: grid;
  gap: 10px;
}
.spec-list li {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e4e4;
}
.spec-list strong { color: var(--text-dark); }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.cert-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.cert-card figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dark-muted);
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  padding: 22px 24px;
}
.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.contact-card p { margin: 0 0 6px; color: var(--text-dark-muted); }
.contact-card .big {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text-dark);
  display: inline-block;
  margin-top: 4px;
}
.contact-card.span-2 { grid-column: 1 / -1; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery a {
  display: block;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 720 / 520;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery a:hover img { transform: scale(1.04); }
.photo-credit {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dark-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.lightbox-close { top: 16px; right: 16px; font-size: 32px; }
.lightbox-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.1); }
body.lb-open { overflow: hidden; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  :root { --pad: 24px; --header-h: 72px; }
  .brand-mark { width: 44px; }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-box { grid-column: 1 / -1; }
  .hero { min-height: 560px; }
  .hero-inner { min-height: 0; }
  .hero-features { max-width: none; padding-top: 36px; }
  .two-col, .contact-panel { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #0a0c0e;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 18px;
    gap: 10px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    width: 100%;
  }
  .site-nav a { display: block; padding: 12px 8px; font-size: 16px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent-2); }
  .btn-cta { margin: 8px 0 0; width: 100%; }
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 28px;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: auto;
    background: #050607;
  }
  .hero-media img {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: 82% 38%;
  }
  .hero-media::after {
    background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.16) 40%,
      transparent 68%);
  }
  .hero-inner { padding-top: 8px; }
  .feature h2 { white-space: normal; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-item { padding: 14px 22px; }
  .contact-item + .contact-item::before {
    left: 22px;
    right: 22px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .hero-copy { max-width: none; padding-top: 8px; }
  .hero h1 { font-size: 2rem; }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-box { padding: 18px 8px; }
  .industries-inner { flex-direction: column; align-items: flex-start; }
  .industries-list { justify-content: flex-start; }
  .industries-list li { padding: 4px 12px 4px 0; }
  .industries-list li + li { padding-left: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-hero.compact, .site-header.is-inner + .page-hero { padding: 28px 0 24px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero-features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
  :root { --max: 1240px; }
  .hero { min-height: 700px; }
}
