/* ==========================================================================
   Inovmaty — shared site styles
   Brand: ink / paper / violet (primary) / teal (Konstrukt) / coral (Projekty)
   ========================================================================== */

:root {
  --ink: #1C1A24;
  --paper: #FAF8F5;
  --violet: #7C5CFF;
  --violet-dark: #5B3FE0;
  --coral: #FF6B5B;
  --coral-dark: #E0503F;
  --teal: #17A897;
  --teal-dark: #128976;
  --silver: #C3BFCC;
  --border: rgba(28, 26, 36, 0.10);
  --text-muted: rgba(28, 26, 36, 0.65);
  --text-faint: rgba(28, 26, 36, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; }

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

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
  width: 100%;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo svg { margin-bottom: -1px; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navlink {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.navlink:hover { color: var(--ink); }
.navlink.is-active { font-weight: 600; color: var(--ink); }
.navlink.is-active--teal { color: var(--teal); }
.navlink.is-active--coral { color: var(--coral); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-teal { background: var(--teal); color: #FFFFFF; }
.btn-teal:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn-coral { background: var(--coral); color: #FFFFFF; }
.btn-coral:hover { background: var(--coral-dark); color: #FFFFFF; }
.btn-violet { background: var(--violet); color: #FFFFFF; }
.btn-violet:hover { background: var(--violet-dark); color: #FFFFFF; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(28, 26, 36, 0.16);
  color: var(--ink);
}
.btn-outline:hover { border-color: rgba(28, 26, 36, 0.32); color: var(--ink); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Hero (subpages) ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 88px 0 72px;
}
.hero-copy { flex: 1.1; display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
.hero-copy p { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 540px; margin: 0; }
.hero-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero-art {
  flex: 1;
  height: 340px;
  border-radius: 24px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.positioning-note {
  margin: 0 0 64px;
  padding: 28px 32px;
  border-radius: 16px;
  background: rgba(28, 26, 36, 0.04);
  border: 1px solid rgba(28, 26, 36, 0.08);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 900px;
}

/* ---------- Process ---------- */

.section-title {
  text-align: center;
  color: var(--text-faint);
  margin-bottom: 36px;
}

.process-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}
.process-card {
  flex: 1;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-card .step-num { font-size: 15px; font-weight: 700; }
.process-card h3 { font-size: 20px; font-weight: 600; margin: 0; }
.process-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- Services ---------- */

.services { padding-bottom: 64px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
  padding: 26px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .title { font-size: 15.5px; font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  margin: 24px 0 64px;
  background: var(--ink);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--paper);
  max-width: 560px;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer, .footer-meta { font-size: 14px; color: var(--text-faint); }
.footer-meta { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Home hero / compass ---------- */

.home-hero {
  padding: 72px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}
.home-hero h1 { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.home-hero p { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 640px; margin: 0; }

.compass-row {
  padding: 48px 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.division-card {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.division-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.division-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(28, 26, 36, 0.08); }
.division-card.is-selected--teal { border-color: var(--teal); background: #F2FBF9; }
.division-card.is-selected--coral { border-color: var(--coral); background: #FFF4F2; }

.division-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.division-card .kicker { font-size: 11.5px; }
.division-card h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.division-card h2.with-kicker { font-size: 26px; }
.division-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }

.compass-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  flex-shrink: 0;
}
.compass-status {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  min-height: 20px;
  color: rgba(28, 26, 36, 0.4);
}
.needle-group { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.tick-anim { transition: opacity 0.4s ease, stroke-width 0.4s ease; }

/* ---------- Kontakt ---------- */

.kontakt {
  padding: 64px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.kontakt-heading { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.kontakt-heading h2 { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.kontakt-grid { display: flex; gap: 32px; align-items: stretch; flex-wrap: wrap; }

.contact-form {
  flex: 1.1;
  min-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field textarea {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(28, 26, 36, 0.16);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
}
.form-field textarea { resize: none; }
.form-note { font-size: 13px; color: var(--text-faint); }

.company-card {
  flex: 0.85;
  min-width: 280px;
  background: var(--ink);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--paper);
}
.company-card .company-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.company-card .addr { font-size: 14px; line-height: 1.7; color: rgba(250, 248, 245, 0.72); }
.company-card .legal { font-size: 13px; line-height: 1.85; color: rgba(250, 248, 245, 0.6); }
.company-card .divider { height: 1px; background: rgba(250, 248, 245, 0.14); }
.company-card a { color: var(--paper); font-size: 14.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero { flex-direction: column; }
  .hero-art { width: 100%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav { gap: 20px; }
  .home-hero h1 { font-size: 34px; }
  .hero-copy h1 { font-size: 32px; }
  .process-grid { flex-direction: column; }
  .service-grid, .service-grid.cols-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px; }
  .kontakt-grid { flex-direction: column; }
}
