/* =========================================================
   as-dark — vlastní téma Automation Solutions
   Dark industrial, hero s 3D noční scénou, lime akcent
   ========================================================= */

:root {
  --bg:        #060d1a;
  --bg-2:      #0a1526;
  --bg-card:   #0e1c33;
  --border:    #1d3050;
  --ink:       #eef3fc;
  --body:      #a7b6d0;
  --muted:     #67789a;
  --lime:      #b8d726;
  --lime-soft: rgba(184, 215, 38, .12);
  --cyan:      #4cc9f0;
  --navy:      #042c55;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --r: 14px;
  --t: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  font-size: 1.04rem;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; }
h1 { font-size: 2.7rem; font-weight: 700; }
h2 { font-size: 1.85rem; font-weight: 650; margin-top: 3rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 2rem; }
p  { margin: 0 0 1.15rem; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t); }
a:hover { color: #9bdcf7; }
strong { color: var(--ink); font-weight: 600; }
.mono { font-family: var(--mono); font-size: .85em; color: var(--muted); }
hr { border: none; height: 1px; background: var(--border); margin: 3.2rem 0; }

/* ---------- Modular sections ---------- */
.module { padding: 3.2rem 0; }
.module + .module { padding-top: .5rem; }

/* intro lead */
.module-intro .lead {
  font-size: 1.28rem;
  line-height: 1.85;
  color: #c3d0e6;
  max-width: 52rem;
}
.module-intro .lead strong { color: var(--ink); }

/* services card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.7rem 1.6rem 1.2rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: rgba(184, 215, 38, .5);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.7);
}
.card-title {
  margin: 0 0 .9rem;
  font-size: 1.18rem;
  color: var(--ink);
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--lime);
  display: inline-block;
}
.card-body { font-size: .97rem; }
.card-body h3 { display: none; }  /* title rendered by card-title */
.card-body ul { margin-top: .4rem; }

/* process steps */
.module-title { font-size: 1.85rem; margin-bottom: 1.8rem; }
.steps { display: grid; gap: 1.1rem; max-width: 56rem; }
.step {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.3rem 1.6rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1.1;
  min-width: 3rem;
}
.step-body p { margin: 0; }

/* references grid */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.ref-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.3rem 1.5rem;
  font-size: .98rem;
  transition: border-color var(--t), background var(--t);
}
.ref-card:hover { border-left-color: var(--cyan); background: var(--bg-card); }

/* contact CTA band */
.module-contact { padding-bottom: 4.5rem; }
.contact-band {
  background:
    radial-gradient(ellipse 70% 120% at 50% -30%, rgba(184, 215, 38, .12), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.6rem 2.4rem;
  text-align: center;
}
.contact-band p { margin-bottom: .8rem; }
.contact-band a { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 26, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--body); font-weight: 500; font-size: .96rem;
  padding: .5rem .95rem; border-radius: 9px;
  transition: background var(--t), color var(--t);
}
.main-nav a:hover { color: var(--ink); background: var(--bg-card); }
.main-nav a.active { color: var(--lime); background: var(--lime-soft); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; padding: .6rem .7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,13,26,.15) 0%, rgba(6,13,26,.05) 40%, rgba(6,13,26,.92) 88%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 4.5rem; width: 100%; }
.hero-kicker {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: 3.4rem;
  max-width: 46rem;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-sub { font-size: 1.18rem; color: #c3d0e6; max-width: 40rem; margin-bottom: 2rem; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.7rem;
  border-radius: 11px;
  transition: all var(--t);
  border: 1px solid transparent;
}
.btn-primary { background: var(--lime); color: #0c1500; }
.btn-primary:hover { background: #d3ef3e; color: #0c1500; transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(184,215,38,.5); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--ink); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Content ---------- */
.site-main { padding: 3.5rem 0 4rem; }
.site-main .page-content h1:not(.hero-title),
.site-main > .wrap > h1:not(.hero-title) {
  font-size: 2.1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--lime);
  margin-top: 1rem;
}
.site-main .page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}
.site-main .page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
}
.site-main .page-content table th,
.site-main .page-content table td {
  border: 1px solid rgba(255,255,255,.15);
  padding: .5rem .8rem;
  text-align: left;
}

/* section content as cards where h2 follows hr */
.site-main h2 { padding-bottom: .55rem; }

/* lists */
.site-main ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.site-main ul > li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.site-main ul > li::before {
  content: "";
  position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 50%, 0 100%);  /* small lime triangle marker */
}

/* ordered list (Jak pracujeme) */
.site-main ol { padding-left: 1.4rem; }
.site-main ol > li { margin-bottom: .8rem; padding-left: .4rem; }
.site-main ol > li::marker { color: var(--lime); font-family: var(--mono); font-weight: 600; }

/* images as framed panels */
.site-main img {
  max-width: 100%; height: auto;
  display: block; margin: 1.8rem auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
}

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
tr:hover td { background: var(--lime-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #04091a;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}
.site-footer p { font-size: .93rem; line-height: 1.85; margin-bottom: .5rem; }
.site-footer a { color: var(--cyan); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .8rem;
  color: var(--muted); text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: 2.4rem; }
  .hero { min-height: 64vh; }
  .main-nav {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(6,13,26,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem 1.5rem;
  }
  body.nav-open .main-nav { display: flex; }
  .nav-toggle { display: block; }
  h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
