/* ============================================================
   style.css — Main stylesheet for vertiva.ch
   ============================================================ */

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

:root {
  --bg:        #f9f4f0;
  --bg-alt:    #eae2d7;
  --ink:       #171913;
  --ink-soft:  #3a3c36;
  --accent:    #b5480a;
  --accent-hover: #9a3c06;
  --line:      #c3bfb6;
  --font:      'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter:    clamp(16px, 3vw, 48px);
  --header-h:  clamp(64px, 5.25vw, 80px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
  line-height: 1;
  border: 2px solid var(--accent);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
.btn .arrow {
  width: 0.8em;
  height: 0.8em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .15s ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn--solid {
  background: var(--accent);
  color: #fff;
  padding: 0.75em 1.35em;
  font-size: clamp(17px, 1.75vw, 27px);
}
.btn--solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline {
  color: var(--accent);
  padding: 0.6em 1.1em;
  font-size: clamp(15px, 1.45vw, 21px);
}
.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn:focus-visible,
.header__nav a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* equal outer columns → nav centred on screen */
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(36px, 4.1vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.logo__v {
  width: 0.6em;
  height: 0.55em;          /* ≈ x-height of Hanken Grotesk */
  margin-right: -0.01em;
  overflow: visible;
}

.header__nav {
  display: flex;
  gap: clamp(24px, 4vw, 62px);
  font-size: clamp(16px, 1.5vw, 23px);
}
.header__nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.header__nav a:hover { border-bottom-color: var(--accent); }

.header__cta { justify-self: end; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 36.3% 1fr;
  min-height: min(calc(100svh - var(--header-h)), 43.2vw);
}

.hero__text {
  align-self: center;
  padding: 48px clamp(16px, 2.2vw, 40px) 48px var(--gutter);
}
.hero h1 {
  font-size: clamp(44px, 6.25vw, 100px);
  margin-bottom: 0.4em;
}
.hero__lead {
  font-size: clamp(18px, 1.85vw, 29px);
  line-height: 1.35;
  max-width: 17em;
  margin-bottom: 1.6em;
}

.hero__image { position: relative; }
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

/* ── Split section (ZIP-System) ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 49.5% 1fr;
  gap: clamp(24px, 4.6vw, 72px);
  align-items: start;
  background: var(--bg-alt);
  padding: clamp(24px, 2.8vw, 44px) var(--gutter);
}
.split__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.split__text { padding-top: clamp(8px, 3.4vw, 56px); }
.split h2 {
  font-size: clamp(34px, 4.3vw, 68px);
  margin-bottom: 0.45em;
}
.split__text p {
  font-size: clamp(18px, 1.85vw, 29px);
  line-height: 1.35;
}

.features {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(16px, 2.5vw, 40px);
  padding-bottom: clamp(16px, 2.5vw, 40px);
}
.features li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink-soft);
}
.features strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

/* ── Motto band ───────────────────────────────────────────── */
.motto {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 8vw, 128px) var(--gutter);
  text-align: center;
}
.motto__line {
  font-size: clamp(30px, 4.3vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 20em;
  margin: 0 auto;
  text-wrap: balance;
}
@media (max-width: 700px) {
  .motto__line br { display: none; }
}
.motto__sub {
  margin-top: 1.4em;
  font-size: clamp(16px, 1.4vw, 21px);
  color: rgba(249, 244, 240, 0.68);
}

/* ── Section headings (shared) ────────────────────────────── */
.uses h2,
.montage h2,
.contact h2 {
  font-size: clamp(34px, 4.3vw, 68px);
  margin-bottom: 0.6em;
}

/* ── Einsatzbereiche ──────────────────────────────────────── */
.uses {
  padding: clamp(64px, 8vw, 128px) var(--gutter) clamp(48px, 6vw, 96px);
}
.uses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 36px);
}
.use { overflow: hidden; }
.use img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  transition: transform .6s ease;
}
.use:hover img { transform: scale(1.03); }
.use figcaption {
  padding-top: 20px;
}
.use h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  margin-bottom: 0.3em;
}
.use p { color: var(--ink-soft); }

/* ── Montage ──────────────────────────────────────────────── */
.montage {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: clamp(32px, 6vw, 112px);
  align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(64px, 8vw, 128px);
}
.montage__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.montage h2 { margin-bottom: 0.35em; }
.montage__lead {
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.4;
  max-width: 24em;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.steps {
  list-style: none;
  display: grid;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding-top: 0.45em;
}
.steps h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  margin-bottom: 0.25em;
}
.steps p {
  color: var(--ink-soft);
  max-width: 30em;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  background: var(--bg-alt);
  padding: clamp(56px, 7vw, 112px) var(--gutter);
}
.contact h2 { margin-bottom: 0.35em; }
.contact p {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--ink-soft);
  margin-bottom: 1.4em;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 24px var(--gutter);
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__text { padding: 40px var(--gutter) 36px; }
  .hero__image img {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .split { grid-template-columns: 1fr; }
  .split__text { padding-top: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }

  .uses__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .montage { grid-template-columns: 1fr; }
  .montage__image img { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --header-h: 108px; }

  .header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    row-gap: 10px;
  }
  .header__nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 28px;
  }
  .header { column-gap: 12px; }
  .logo { font-size: 34px; }
  .header__cta { font-size: 15px; }
}

@media (max-width: 380px) {
  .logo { font-size: 28px; }
  .header__cta { font-size: 13px; padding: 0.55em 0.8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow, .header__nav a, .use img { transition: none; }
}
