/* ============================================================
   GÖTTI MOTOREN — Heritage Engineering Design System
   ============================================================ */
:root {
  --base: #121417;
  --panel: #0E1013;
  --panel-warm: #1A1712;
  --hairline: #23262A;
  --border: #2E3136;
  --text: #E8E4DC;
  --body: #A8A49C;
  --muted: #8B877F;
  --copper: #B87333;
  --copper-bright: #D08A45;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--base); color: var(--body);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -1.4%; line-height: 1.15; }
h1 { font-size: clamp(38px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -0.5%; }
p + p { margin-top: 1em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 18px;
}
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,20,23,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font-weight: 600; font-size: 17px; letter-spacing: -0.3px; color: var(--text); }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--body); text-decoration: none; font-size: 14px;
  transition: color 250ms var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { border-bottom: 1px solid var(--copper); padding-bottom: 2px; }
.lang-switch { display: flex; gap: 8px; margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--hairline); }
.lang-switch a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.lang-switch a.active { color: var(--copper); }
.nav-toggle { display: none; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.section:first-of-type { border-top: 0; }
.section-dark { background: var(--panel); }
.section-warm { background: var(--panel-warm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.grid-2 > div > p:first-child { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; }
.hero-rings {
  position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 640px; height: 640px; pointer-events: none; opacity: 0.5;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: 18px; max-width: 52ch; margin-top: 28px; }
.hero-rule { width: 64px; height: 2px; background: var(--copper); margin: 32px 0 0; }
.hero-facts { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.hero-facts .fact .mono { color: var(--muted); display: block; margin-bottom: 4px; }
.hero-facts .fact strong { color: var(--text); font-weight: 600; font-size: 15px; }

/* hero intro animation (once per session) */
.hero .anim { opacity: 0; transform: translateY(12px); }
body.hero-play .hero .anim { animation: rise 600ms var(--ease) forwards; }
body.hero-play .hero .anim:nth-child(1) { animation-delay: 0ms; }
body.hero-play .hero .anim:nth-child(2) { animation-delay: 150ms; }
body.hero-play .hero .anim:nth-child(3) { animation-delay: 300ms; }
body.hero-play .hero .anim:nth-child(4) { animation-delay: 450ms; }
body.hero-seen .hero .anim { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- numbered process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--base); padding: 32px 24px; position: relative; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--copper); transition: width 400ms var(--ease);
}
.step:hover::before { width: 100%; }
.step .num {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--copper); display: block; margin-bottom: 16px;
  transition: color 250ms var(--ease);
}
.step:hover .num { color: var(--copper-bright); }
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; }
/* stagger reveal */
.steps .step { opacity: 0; transform: translateY(12px); }
.steps.inview .step { animation: rise 500ms var(--ease) forwards; }
.steps.inview .step:nth-child(1) { animation-delay: 0ms; }
.steps.inview .step:nth-child(2) { animation-delay: 90ms; }
.steps.inview .step:nth-child(3) { animation-delay: 180ms; }
.steps.inview .step:nth-child(4) { animation-delay: 270ms; }
.steps.inview .step:nth-child(5) { animation-delay: 360ms; }

/* ---------- marque wall ---------- */
.marques { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.marque {
  border: 1px solid var(--border); padding: 10px 20px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--body);
}

/* ---------- tech tables ---------- */
.tech-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; }
.tech-table th, .tech-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.tech-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tech-table td:first-child { color: var(--text); }
.tech-table .mono { color: var(--copper); }

/* ---------- photo slots / pairs ---------- */
.photo-slot {
  background: var(--panel); border: 1px solid var(--border);
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot .ph-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-align: center; padding: 24px;
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 40px; }
.photo-pair .cell { background: var(--base); position: relative; }
.photo-pair .cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); background: rgba(14,16,19,0.85);
  padding: 4px 10px;
}

/* ---------- CTA / buttons ---------- */
.btn {
  display: inline-block; background: var(--copper); color: #121417;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 14px 30px; border: 0; cursor: pointer;
  transition: background 250ms var(--ease);
}
.btn:hover { background: var(--copper-bright); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--border); color: var(--text);
  padding: 13px 28px; text-decoration: none; font-size: 15px;
  transition: border-color 250ms var(--ease);
}
.btn-ghost:hover { border-color: var(--copper); }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 56ch; margin: 0 auto 32px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.f-field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f-field input[type="text"], .f-field input[type="email"], .f-field input[type="tel"], .f-field select, .f-field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px; outline: none;
  transition: border-color 250ms var(--ease);
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--copper); }
.f-field textarea { resize: vertical; min-height: 120px; }
.f-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.f-check input { margin-top: 5px; accent-color: var(--copper); }
.f-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.f-checks .f-check { align-items: center; }
.f-checks .f-check input { margin-top: 0; }
.f-file {
  border: 1px dashed var(--border); padding: 28px; text-align: center;
  font-size: 14px; color: var(--muted); cursor: pointer;
  transition: border-color 250ms var(--ease);
}
.f-file:hover { border-color: var(--copper); }
.f-file input { display: none; }
.f-file .file-list { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--body); text-align: left; }
.f-file .file-list .err { color: #C05555; }
.form-error { color: #C05555; font-size: 14px; margin-top: 16px; display: none; }
.form-success { border: 1px solid var(--copper); padding: 28px; color: var(--text); display: none; }
.hp-field { position: absolute; left: -6000px; top: -6000px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; background: var(--panel); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.site-footer a { color: var(--body); text-decoration: none; display: block; padding: 3px 0; font-size: 14px; }
.site-footer a:hover { color: var(--copper); }
.site-footer p { font-size: 14px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--copper); }

/* scroll reveal (once) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.inview { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .steps, .steps-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; }
  .hero-rings { opacity: 0.25; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--base); border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--border); color: var(--text);
    padding: 8px 14px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero .anim, .steps .step, .reveal { opacity: 1 !important; transform: none !important; }
}
