/* ============================================================
   AP2 Industry – www.ap2industry.com
   Moderní průmyslový B2B styl
   ============================================================ */

:root {
  --dark: #0f172a;
  --graphite: #111827;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #111827;
  --text-light: #f9fafb;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e5e7eb;
  --border-dark: rgba(148, 163, 184, 0.18);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: inherit;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { font-size: 1rem; }

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

section { padding: 90px 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
}

.brand img {
  width: 42px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.main-nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover { color: var(--white); }

.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.main-nav .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 8px;
  border-bottom: none;
  transition: background 0.2s;
}

.main-nav .nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(37, 99, 235, 0.16), transparent 55%),
    linear-gradient(160deg, var(--dark) 0%, var(--graphite) 100%);
  color: var(--text-light);
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero p { color: #cbd5e1; max-width: 560px; margin-top: 22px; font-size: 1.06rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero .eyebrow { color: #60a5fa; }

.accent { color: #3b82f6; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 10px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-light);
}

.btn-ghost:hover { border-color: var(--white); }

.hero-logo { display: flex; justify-content: center; }

.logo-anim {
  position: relative;
  width: min(380px, 80vw);
}

.logo-anim img {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.logo-anim canvas {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-dark);
}

.stat strong {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  display: block;
  margin-top: 8px;
}

/* ---------- Sections / cards ---------- */
.section-head {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-head p { color: var(--muted); margin-top: 18px; font-size: 1.04rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--muted); font-size: 0.95rem; }

.card ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.card ul li {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 5px 0 5px 24px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

/* ---------- Split / portrait ---------- */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.portrait {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.lead { font-size: 1.08rem; color: #374151; }

.quote {
  border-left: 4px solid var(--accent);
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 18px 24px;
  margin: 26px 0;
}

.quote p {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--graphite);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
    var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: 90px 0;
}

.cta-band p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 18px auto 32px;
}

/* ---------- Timeline ---------- */
.timeline {
  margin-top: 30px;
  border-left: 2px solid var(--border);
  padding-left: 34px;
  display: grid;
  gap: 38px;
}

.tl-item { position: relative; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.tl-item time {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-item h3 { margin-top: 6px; }

.tl-item .role {
  display: block;
  color: var(--graphite);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 4px 0 8px;
}

.tl-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.chip {
  background: var(--white);
  border: 1px solid var(--border);
  color: #374151;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 500;
}

.section-alt .chip { background: var(--white); }

.chip.blue {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent-dark);
}

/* ---------- Tables ---------- */
.table-wrap { max-width: 620px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.data th, table.data td {
  padding: 12px 18px;
  font-size: 0.93rem;
  text-align: left;
}

table.data thead th {
  background: var(--graphite);
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

table.data tbody tr:nth-child(even) { background: var(--light); }

table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.source {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: grid; gap: 26px; }

.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-info .val, .contact-info a { font-size: 1.05rem; font-weight: 500; color: var(--graphite); }

.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.req { color: var(--accent); }

.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--white);
}

.field textarea { min-height: 140px; resize: vertical; }

.error-msg {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 5px;
}

.field.invalid input, .field.invalid textarea { border-color: #dc2626; }

.field.invalid .error-msg { display: block; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
}

.form-status.ok {
  display: block;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.form-status.err {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--muted);
  padding: 34px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .brand img { width: 34px; height: 36px; }

.site-footer .brand-name { font-size: 1.1rem; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-nav a { color: #94a3b8; font-size: 0.9rem; }

.footer-nav a:hover { color: var(--white); }

.copyright { font-size: 0.82rem; }

/* ---------- Reveal animace ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-logo { order: -1; }
  .logo-anim { width: min(280px, 70vw); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr) !important; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 10px 4%;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 13px 6px;
    border-bottom: 1px solid var(--border-dark);
  }

  .main-nav a.active { border-bottom-color: var(--border-dark); color: var(--accent); }

  .main-nav .nav-cta {
    margin: 12px 0 6px;
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

/* ---------- Language switcher ---------- */
.header-inner { gap: 20px; }
.brand { margin-right: auto; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lang-switch a {
  display: inline-flex;
  width: 27px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.5;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }

.lang-switch a.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
  border-color: transparent;
}

.lang-switch svg { width: 100%; height: 100%; display: block; }

@media (max-width: 680px) {
  .header-tools { gap: 12px; }
  .lang-switch a { width: 25px; height: 17px; }
}
