/* -------------------------------------------------------
   ZÁKLAD
------------------------------------------------------- */

:root {
  --color-bg: #f5f7fb;
  --color-bg-alt: #ffffff;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border-soft: rgba(148, 163, 184, 0.28);
  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.09);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --container-width: 1320px;
  --space-section: 64px;
  --space-section-mobile: 40px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
               "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Pozadí: gradient + grid + noise (noise je volitelné) */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background:
    url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'>\
      <filter id='noise'>\
        <feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/>\
      </filter>\
      <rect width='8' height='8' filter='url(%23noise)' opacity='0.08'/>\
    </svg>") repeat,
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.04) 1px,
      transparent 1px
    ),
    radial-gradient(circle at top left, #e6f0ff 0, #f7f8fb 40%, #f3f4f8 100%);
  background-size:
    auto,
    24px 24px,
    24px 24px,
    cover;
}

/* -------------------------------------------------------
   LAYOUT
------------------------------------------------------- */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 25px;
}

.section-alt {
  padding: var(--space-section) 0;
}

.section-narrow {
  background: radial-gradient(
  circle at top left,
  rgba(230, 240, 255, 0.9) 0%,
  rgba(247, 248, 251, 0.8) 60%,
  rgba(243, 244, 248, 0.1) 100%
);  
}

.section-project {
  background: radial-gradient(
  circle at top right,
  rgba(230, 240, 255, 0.9) 0%,
  rgba(247, 248, 251, 0.8) 60%,
  rgba(243, 244, 248, 0.1) 100%
);  
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: var(--color-text-muted);
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 252, 0.96),
    rgba(247, 248, 252, 0.9),
    rgba(247, 248, 252, 0.86)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: #0f172a;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.96rem;
}

.main-nav a {
  text-decoration: none;
  color: #374151;
  padding: 6px 4px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 80px 0 84px;
  color: #0f172a;
}

/* full-width robot + bokeh v pozadí */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/hero-robot-arm.png");
  background-size: cover;
  background-position: right center;
  opacity: 0.9;
}

/* světlejší panel pro text */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(247, 250, 252, 0.98) 0,
      rgba(247, 250, 252, 0.92) 40%,
      rgba(247, 250, 252, 0.65) 68%,
      rgba(247, 250, 252, 0.0) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: 2.5rem;
  line-height: 1.12;
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
              background-color 0.12s ease-out, border-color 0.12s ease-out;
}

.button-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.4);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.55);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border-color: rgba(148, 163, 184, 0.6);
}

.button-secondary:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* -------------------------------------------------------
   SPECIALIZACE
------------------------------------------------------- */

.section-alt {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.96)
    );
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.specialization-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
}

.specialization-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.specialization-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------
   PROJEKTY
------------------------------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
}

.project-image {
  min-height: 160px;
  background-size: cover;
  background-position: center;
}

/* nahraď vlastními obrázky linek / hal / techniků */
.project-image-1 {
  background-image: url("img/robot.jpg");
}

.project-image-2 {
  background-image: url("img/linka.jpg");
}

.project-image-3 {
  background-image: url("img/special.jpg");
}

.project-body {
  padding: 18px 18px 18px;
}

.project-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.project-body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------
   KVALITA
------------------------------------------------------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.78rem;
  color: var(--color-primary);
}

/* -------------------------------------------------------
   KONTAKT
------------------------------------------------------- */

.section-contact {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background-color: #ffffff;
  position: relative;
}


.section-contact::after {
  content: "";
  inset: 0;
  position: absolute;
  background-image: url("img/world-map-dots.png");
  background-repeat: no-repeat;
  background-size: initial;
  background-position: 150% 20%;
  opacity: 0.1;
  pointer-events:none;
  z-index:0;  
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
  position:relative;
  z-index:1;   
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  max-width: 360px;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.contact-value {
  font-size: 1.02rem;
  color: #111827;
  text-decoration: none;
}

.contact-value:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 14px 0 18px;
  background: rgba(248, 250, 252, 0.96);
}

.footer-inner {
  padding: 0 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
}

/* -------------------------------------------------------
   SCROLL REVEAL ANIMACE SEKCI
------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-300px);
}

.reveal-right {
  transform: translateX(300px);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    padding-inline: 16px;
  }

  .main-nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 64px 0 68px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .columns-2 {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: var(--space-section-mobile);
  }

  .hero {
    padding: 52px 0 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    display: none; /* pro jednoduchost – případně můžeš doplnit mobilní menu */
  }

  .section,
  .section-alt,
  .section-narrow {
    padding-inline: 0;
  }
}
