/* ==========================================================================
   perfa.cz — design tokens
   Ink navy on cool paper grey, signal green (aktivní kampaň) +
   burnt orange (akce/CTA), Space Grotesk display, IBM Plex Sans body,
   IBM Plex Mono for the dashboard-style data bits.
   ========================================================================== */

:root {
  --ink: #14171c;
  --ink-soft: #3d434c;
  --paper: #eceef1;
  --paper-soft: #f5f6f8;
  --card: #ffffff;
  --line: #d7dbe1;
  --green: #1f7a5c;
  --green-light: #5dcaa5;
  --green-soft: #e2f1ea;
  --orange: #c2410c;
  --orange-soft: #fce8e1;
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- header / nav ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span { color: var(--green); }

.navlinks {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.navlinks a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--orange);
}

.navcta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 3px;
  transition: background 0.15s;
}

.navcta:hover { background: var(--green); }

.header-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.contact-pill {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 4px 0 12px;
}

.contact-pill a.phone {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  padding: 8px 0;
}

.contact-pill a.phone .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.contact-pill .divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 8px;
}

.contact-pill a.whatsapp {
  display: flex;
  align-items: center;
  color: var(--green);
  text-decoration: none;
  padding: 6px;
}

.contact-pill a.whatsapp svg {
  width: 16px;
  height: 16px;
}

.navcta.pill {
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}

.burger svg { width: 24px; height: 24px; }

.burger { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 60px;
}

.hero .lede {
  font-size: 1.2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 3px;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #9a3209; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- dashboard signature strip ---------- */

.tools-row {
  margin-top: 44px;
}

.tools-row .tools-caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.logo-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 44px;
}

.logo-strip img {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.logo-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-strip .more-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- generic section ---------- */

section { padding: 64px 0; }

section.alt { background: var(--paper-soft); }

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

/* ---------- services grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card li { margin-bottom: 6px; }

/* ---------- about / split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pull {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  border-left: 3px solid var(--green);
  padding-left: 22px;
  margin: 0 0 20px;
}

.stats-inline {
  display: flex;
  gap: 30px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stats-inline div { font-family: var(--font-mono); }
.stats-inline strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
}
.stats-inline span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- references / empty state ---------- */

.ref-empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 48px 32px;
  text-align: center;
  background: var(--card);
}

.ref-empty .eyebrow { justify-content: center; }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ref-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.ref-card .logo-slot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  display: inline-block;
  margin-bottom: 16px;
}

/* ---------- contact ---------- */

.contact-box {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-box h2 { color: #fff; }
.contact-box p { color: #c7ccd3; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-list li {
  padding: 14px 0;
  border-top: 1px solid #2c313a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.contact-list li:last-child { border-bottom: 1px solid #2c313a; }
.contact-list a { text-decoration: none; color: var(--paper); }
.contact-list a:hover { color: var(--green); }
.contact-list span.k { color: #8a909a; }

form.simple {
  display: grid;
  gap: 14px;
}
form.simple input,
form.simple textarea {
  width: 100%;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
form.simple textarea { resize: vertical; min-height: 110px; }
form.simple label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: -8px;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .logo-strip { gap: 28px; }
  .logo-strip img { height: 34px; }
  .contact-box { grid-template-columns: 1fr; padding: 34px 26px; }

  .header-actions { gap: 6px; }
  .logo { font-size: 0.95rem; }
  .nav { gap: 8px; }
  .navcta.pill { display: none; }
  .contact-pill { padding: 0 4px; }
  .contact-pill a.phone { padding: 8px 4px; font-size: 0.68rem; }
  .burger { display: flex; }

  .nav { flex-wrap: nowrap; }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 20px;
    list-style: none;
    margin: 0;
  }

  .navlinks.open { display: flex; }

  .navlinks li { border-top: 1px solid var(--line); }
  .navlinks li:first-child { border-top: none; }

  .navlinks a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
    font-size: 1rem;
  }
}
