/* ==========================================================
   michalpernica.eu – hlavní stylopis
   Nová verze 2026 | industriální, čistý B2B design
   ========================================================== */

:root {
  --ink: #16181d;          /* téměř černá – text, tmavé sekce */
  --steel: #232730;        /* grafit – hero, patička */
  --steel-2: #2e3340;
  --arc: #f2790f;          /* oranžová – svařovací oblouk, akcent */
  --arc-dark: #d05f00;
  --paper: #f6f6f4;        /* světlé pozadí sekcí */
  --white: #ffffff;
  --muted: #5b6270;
  --line: #e3e4e0;
  --radius: 10px;
  --maxw: 1160px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typografie ---------- */
h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--arc);
  margin-bottom: .7rem;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }

/* ---------- header / navigace ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 24, 29, .96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--arc);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 1rem;
}
.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--arc); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a {
  color: #cfd3db;
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--arc);
  color: var(--white) !important;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--arc-dark); }
.lang-switch {
  font-size: .85rem;
  border: 1px solid #4a5060;
  padding: .3rem .7rem;
  border-radius: 6px;
  color: #cfd3db !important;
}

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(22,24,29,.97) 0%, rgba(35,39,48,.94) 55%, rgba(46,51,64,.92) 100%),
    repeating-linear-gradient(45deg, #20242c 0 2px, #1a1d24 2px 14px);
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,121,15,.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero h1 { color: var(--white); margin: .4rem 0 1.1rem; }
.hero .lead { color: #b9bec9; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--arc); color: var(--white); }
.btn-primary:hover { background: var(--arc-dark); }
.btn-ghost { border: 1.5px solid #565c6b; color: var(--white); }
.btn-ghost:hover { border-color: var(--arc); color: var(--arc); }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.badge {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #dfe2e8;
  border: 1px solid #454b5a;
  padding: .35rem .8rem;
  border-radius: 999px;
}
.badge strong { color: var(--arc); }

/* ---------- sekce ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--steel); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-head { margin-bottom: 2.5rem; max-width: 46em; }

/* ---------- karty služeb ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--arc); }
.card h3 { margin-bottom: .1rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .93rem; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--arc), var(--arc-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  margin-bottom: .4rem;
}

/* ---------- reference ---------- */
.ref-group { margin-bottom: 2.6rem; }
.ref-group > h3 {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--arc);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.ref-card { background: var(--white); }
.ref-card .meta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--arc-dark);
}
.ref-card figure {
  margin: -1.8rem -1.6rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, #e9eaec 0 6px, #f3f4f5 6px 12px);
  display: flex; align-items: center; justify-content: center;
  color: #9aa0ab; font-size: .85rem;
}
.ref-card figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- certifikace ---------- */
.cert-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cert {
  background: var(--steel-2);
  border: 1px solid #3a4050;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.cert .code {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--arc);
  line-height: 1;
}
.cert h3 { color: var(--white); margin: .5rem 0 .3rem; font-size: 1.05rem; }
.cert p { color: #aab0bc; font-size: .9rem; }
.cert .tag {
  display: inline-block;
  margin-top: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfd3db;
  border: 1px solid #4a5060;
  border-radius: 999px;
  padding: .15rem .6rem;
}

/* ---------- kroky spolupráce ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--arc);
  display: block;
  line-height: 1;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--arc);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- projekty ---------- */
.proj-card { position: relative; }
.proj-card .cat {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--arc-dark);
}
.proj-card .url { font-size: .88rem; font-weight: 600; margin-top: auto; }

/* ---------- kontakt ---------- */
.contact-wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list li {
  display: flex;
  gap: .9rem;
  align-items: baseline;
  font-size: 1.05rem;
}
.contact-list .lbl {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--arc);
  min-width: 84px;
}
.contact-list a { color: var(--white); font-weight: 600; }
.signature {
  max-width: 260px;
  margin-top: 2rem;
  opacity: .9;
}
.contact-box {
  background: var(--steel-2);
  border: 1px solid #3a4050;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.contact-box h3 { color: var(--white); margin-bottom: .6rem; }
.contact-box p { color: #aab0bc; font-size: .95rem; margin-bottom: 1.2rem; }

/* ---------- CTA pruh ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--arc), var(--arc-dark));
  color: var(--white);
  padding: 3rem 0;
}
.cta-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.cta-strip h2 { font-size: 1.6rem; color: var(--white); }
.cta-strip .btn { background: var(--ink); color: var(--white); }
.cta-strip .btn:hover { background: #000; }

/* ---------- patička ---------- */
.site-footer {
  background: var(--ink);
  color: #8f96a3;
  padding: 2.4rem 0;
  font-size: .9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #cfd3db; }

/* ---------- podstránky ---------- */
.page-hero {
  background: var(--steel);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 3px solid var(--arc);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero .lead { color: #b9bec9; margin-top: .8rem; }
.breadcrumb { font-size: .85rem; color: #8f96a3; margin-bottom: 1rem; }
.breadcrumb a { color: #cfd3db; }

.prose { max-width: 780px; }
.prose h2 { margin: 2.4rem 0 1rem; font-size: 1.55rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: .45rem; }

/* ---------- responsivita ---------- */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .nav-links { gap: .9rem; flex-wrap: wrap; justify-content: flex-end; padding: .4rem 0; }
  .nav-links a:not(.nav-cta):not(.lang-switch) { display: none; }
}
