/* ==========================================================================
   OPATISK s.r.o. — jednostránkový web
   Tokeny: barvy, typografie, rozestupy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Sans:ital@1&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* barvy odvozené z loga OPATISK */
  --blue:        #243A74;   /* primární modrá — přesně z loga */
  --blue-ink:    #1B2C5A;   /* tmavší modrá pro text na světlém pozadí */
  --green:       #00AB54;   /* akcentová zelená — přesně z loga */
  --green-deep:  #00873F;   /* tlumenější zelená pro text / dostatečný kontrast */
  --navy:        #0A0D22;   /* téměř černá námořnická — sekce s produkty */
  --navy-soft:   #12163A;
  --ink:         #12142A;   /* hlavní text */
  --ink-soft:    #4A4E68;   /* sekundární text */
  --paper:       #FFFFFF;
  --mist:        #F2F3F8;   /* alternující světlá sekce */
  --line:        #DADCE8;
  --line-dark:   #262A4C;

  --font-head: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

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

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

p{ margin: 0 0 1rem; max-width: 62ch; }
a{ color: inherit; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------- */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus{
  left: var(--gutter);
  top: 1rem;
}

/* --------------------------------------------------------------------
   Fold mark — opakovaně použitá zelená ikona přeložených polí z loga
   -------------------------------------------------------------------- */
.fold-mark{
  height: 1.05em;
  width: auto;
  flex: none;
}

/* --------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img{ height: 34px; width: auto; }
.brand{ display:flex; align-items:center; }

nav.primary-nav ul{
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.25rem);
  margin: 0;
  padding: 0;
}
nav.primary-nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.primary-nav a:hover{
  border-color: var(--green);
  color: var(--blue-ink);
}
.nav-toggle{ display: none; }

@media (max-width: 640px){
  nav.primary-nav ul{ gap: 1.1rem; }
  nav.primary-nav a{ font-size: 0.85rem; }
  .brand img{ height: 26px; }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0px,
      transparent 86px,
      rgba(36,58,116,0.06) 86px,
      rgba(36,58,116,0.06) 87px
    );
}
.hero .wrap{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,340px);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: end;
}
.hero-kicker{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero h1{
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  color: var(--blue-ink);
  max-width: 15ch;
}
.hero .lede{
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-stat{
  border-left: 3px solid var(--green);
  padding-left: 1.1rem;
}
.hero-stat .num{
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--blue-ink);
  display: block;
  line-height: 1;
}
.hero-stat .cap{
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: block;
  max-width: 22ch;
}

@media (max-width: 760px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-stat{ border-left: none; border-top: 3px solid var(--green); padding-left: 0; padding-top: 1rem; }
}

/* --------------------------------------------------------------------
   Sekce — obecné
   -------------------------------------------------------------------- */
section{ padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-head{
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head .fold-mark{ align-self: center; }

.section-intro{
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: -1.6rem;
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------
   Produkty — tmavá sekce
   -------------------------------------------------------------------- */
.products{
  background: var(--navy);
  color: #EEF0FA;
}
.products .section-head h2{ color: #fff; }
.products .section-intro{ color: #A9AEDA; }

.product{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--line-dark);
}
.product:last-child{ padding-bottom: 0; }

.product-figure{
  background: #000;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body h3{
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.product-body p{
  color: #C4C8EA;
  max-width: 58ch;
}

@media (max-width: 700px){
  .product{ grid-template-columns: 1fr; }
  .product-figure{ aspect-ratio: 16/9; }
}

/* --------------------------------------------------------------------
   Technologie — světlá sekce s definičním seznamem
   -------------------------------------------------------------------- */
.tech{ background: var(--mist); }

.tech-panel{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.tech-panel .eu-logo{ align-self: start; }
.tech-panel .eu-logo img{ width: 100%; height: auto; }

.tech-meta{
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
}
.tech-meta dt{ color: var(--ink-soft); }
.tech-meta dd{ margin: 0; color: var(--ink); }

.tech-panel .desc{ color: var(--ink-soft); max-width: 68ch; }

@media (max-width: 700px){
  .tech-panel{ grid-template-columns: 1fr; }
  .tech-panel .eu-logo img{ width: 180px; }
  .tech-meta{ grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------
   Kontakty
   -------------------------------------------------------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-block + .contact-block{
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.contact-block h3{
  font-size: 1rem;
  text-transform: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.contact-block address,
.contact-block .dept{ font-style: normal; }

.dept-list{ list-style: none; margin: 0; padding: 0; }
.dept-list li{ margin-bottom: 1.1rem; }
.dept-list .dept-name{ font-weight: 500; display: block; margin-bottom: 0.15rem; }
.dept-list a, .company-id a{
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--blue-ink);
  border-bottom: 1px solid transparent;
}
.dept-list a:hover, .company-id a:hover{ border-color: var(--green-deep); }

.company-id{ font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink-soft); line-height: 1.8; }
.company-id strong{ font-family: var(--font-body); font-weight: 600; color: var(--ink); display:block; font-size: 1.05rem; margin-bottom: 0.5rem; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}
.team-card{ border-top: 3px solid var(--green); padding-top: 0.9rem; }
.team-card .role{ display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.team-card .name{ font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.team-card .reach{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-ink); display: block; text-decoration: none; }
.team-card .reach:hover{ text-decoration: underline; }

@media (max-width: 820px){
  .contact-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .team-grid{ grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------- */
.site-footer{
  background: var(--navy);
  color: #9BA0D0;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer img{ height: 22px; width: auto; filter: brightness(0) invert(1) opacity(0.85); }
.site-footer a{ color: #C4C8EA; text-decoration: none; }
.site-footer a:hover{ text-decoration: underline; }
