/* =========================================================
   Info Moravia s.r.o. – imo.cz
   Barvy podle firemního manuálu: tmavě červená z loga, bílá,
   šedá z navštívenky, černá v textech.
   ========================================================= */

:root {
  --color-primary: #a1322f;      /* tmavě červená z loga */
  --color-primary-dark: #822826; /* hover */
  --color-white: #ffffff;
  --color-grey: #c6c6c6;         /* šedá z navštívenky */
  --color-grey-light: #ededed;   /* světlá varianta pro plochy */
  --color-grey-dark: #6b6b6b;    /* sekundární text, šedý pruh */
  --color-text: #1a1a1a;         /* téměř černá pro text */

  --font-heading: "Anton", "Impact", "Haettenschweiler", "Arial Narrow", sans-serif; /* písmo loga */
  --font-body: "Arimo", "Arial", "Helvetica Neue", Helvetica, sans-serif;           /* písmo navštívenky */

  --container: 1120px;
  --gutter: 20px;
  --header-h: 72px;
  --radius: 2px;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

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

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }

:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: var(--color-white); padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-white);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--color-grey), 0 6px 20px rgba(0,0,0,.05); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 46px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.site-nav a {
  font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--color-text); letter-spacing: .02em; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-text); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Úvod: šedý pruh jako na navštívence ---------- */
.hero-band { background: var(--color-grey-light); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero-logo img { width: 100%; max-width: 520px; }
.hero-text { text-align: right; }
.hero-text h1 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1;
  color: var(--color-primary); margin: 0 0 18px; letter-spacing: .01em;
}
.hero-text p { color: var(--color-text); max-width: 470px; margin-left: auto; }

.hero-strip { background: var(--color-grey-dark); color: var(--color-white); }
.hero-strip p {
  margin: 0 auto; padding-top: 14px; padding-bottom: 14px;
  font-size: clamp(.95rem, 1.6vw, 1.3rem); letter-spacing: .01em; text-align: right;
}
.hero-strip span { opacity: .75; margin: 0 .25em; }

.btn {
  display: inline-block; margin-top: 8px; padding: 13px 28px;
  background: var(--color-primary); color: var(--color-white);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
  transition: background .2s;
}
.btn:hover { background: var(--color-primary-dark); color: var(--color-white); }

/* ---------- Sekce ---------- */
.section { padding: 96px 0; }
.section-grey { background: var(--color-grey-light); }

.section-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
  color: var(--color-primary); margin: 0 0 40px;
  display: flex; align-items: center; gap: 20px;
}
/* linka za nadpisem – odkaz na spodní hranu obdélníku v logu */
.section-title::after { content: ""; flex: 1; height: 3px; background: var(--color-primary); opacity: .9; }

.lead { font-size: 1.2rem; }

/* ---------- Činnost ---------- */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.service {
  background: var(--color-white); padding: 32px 28px;
  border-top: 4px solid var(--color-primary);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.service h3 { font-size: 1.15rem; margin: 16px 0 8px; line-height: 1.3; }
.service p { margin: 0; color: var(--color-grey-dark); }
.icon {
  width: 36px; height: 36px; fill: none; stroke: var(--color-primary);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Historie: časová osa ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px;
  width: 2px; background: var(--color-grey);
}
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 48px; padding-bottom: 36px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 86px; top: 12px;
  width: 14px; height: 14px; background: var(--color-primary); border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.year {
  font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.2;
  color: var(--color-primary); text-align: right;
}
.timeline p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-name { font-size: 1.9rem; font-weight: 700; color: var(--color-primary); margin: 0; line-height: 1.2; }
.contact-name strong { letter-spacing: .02em; }
.contact-role { color: var(--color-grey-dark); margin: 0 0 22px; }

.contact-links { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-links li { display: flex; gap: 14px; align-items: baseline; font-size: 1.25rem; margin-bottom: 6px; }
.contact-links .label { width: 70px; flex: none; font-size: .85rem; color: var(--color-grey-dark); text-transform: uppercase; letter-spacing: .06em; }
.contact-links a { text-decoration: none; font-weight: 700; }
.contact-links a:hover { text-decoration: underline; }

address { font-style: normal; margin-bottom: 20px; }

.billing { margin: 0 0 24px; }
.billing div { display: flex; gap: 14px; }
.billing dt { width: 70px; flex: none; color: var(--color-grey-dark); }
.billing dd { margin: 0; }

.register { font-size: .95rem; color: var(--color-grey-dark); border-left: 3px solid var(--color-primary); padding-left: 14px; }

.contact-map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 300px;
  border: 0;
}

/* ---------- Patička ---------- */
.site-footer { background: var(--color-text); color: var(--color-grey); padding: 44px 0; font-size: .92rem; }
.footer-inner { display: flex; gap: 40px; align-items: center; }
.footer-inner img { width: 110px; flex: none; }
.footer-text p { margin: 0 0 4px; }
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--color-white); }

/* ---------- Jemné animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service, .service:hover { transition: none; transform: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .brand img { height: 38px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-white); border-bottom: 1px solid var(--color-grey);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-grey-light); }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
  .hero-logo img { max-width: 340px; }
  .hero-text { text-align: left; }
  .hero-text p { margin-left: 0; }
  .hero-strip p { text-align: left; }

  .section { padding: 64px 0; }
  .section-title { margin-bottom: 28px; }
  .services { grid-template-columns: 1fr; gap: 16px; }

  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 0; top: 10px; }
  .year { text-align: left; }

  .contact-links li { font-size: 1.1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
