/* AKUservis Vávra – styly webu */

:root {
  --navy: #0f1f5c;
  --navy-dark: #0b1747;
  --blue: #1d3a8a;
  --blue-hover: #0f2466;
  --yellow: #ffd84a;
  --yellow-dark: #ffc61a;
  --ink: #16192b;
  --text: #3a3f55;
  --muted: #4a4f66;
  --paper: #f7f6f1;
  --line: #e6e4dc;
  --line-strong: #dedcd2;
  --on-navy: #dfe5ff;
  --on-navy-muted: #c9d1f2;
  --font: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }
.section-pad { padding-top: 96px; padding-bottom: 96px; }

/* Typografie */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--flush { margin-bottom: 0; }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.text {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: pretty;
}
.text:last-child { margin-bottom: 0; }

.strong { font-weight: 600; }

/* Tlačítka */

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--navy); }
.btn--ghost { border: 1.5px solid #5a6bb0; color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

/* Tlačítko zpět nahoru */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 31, 92, .3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--yellow-dark); color: var(--navy); text-decoration: none; }

/* Záhlaví */

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }

.nav {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__logo img { height: 93px; width: 223px; display: block; }
.nav__links { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.nav__links a { color: var(--on-navy); }
.nav__links a:hover { color: #fff; }
.nav__links .nav__accent { color: var(--yellow); font-weight: 600; }

.hero__body {
  padding-top: 72px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: end;
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: .95;
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  margin: 20px 0 0;
  color: var(--yellow);
  text-wrap: balance;
}
.hero__side { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero__ekg { width: 100%; max-width: clamp(220px, 38vw, 480px); aspect-ratio: 595 / 190; margin-bottom: 44px; }
.hero__ekg img { width: 100%; height: auto; display: block; }
.ekg { animation: ekg-draw 1.8s cubic-bezier(.4, 0, .2, 1) .3s both; }
.hero__lead { font-size: 19px; line-height: 1.55; margin: 0; color: var(--on-navy); max-width: 46ch; text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stripe { height: 10px; background: var(--yellow); }

@keyframes ekg-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* O nás */

.about {
  padding-top: 112px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 64px;
  align-items: center;
}
.about__title { margin-bottom: 28px; }
.about__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; }

/* Sortiment */

.range { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.range__title { margin-bottom: 56px; max-width: 18ch; }
.range__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}
.range__item { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.range__num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--yellow-dark); line-height: 1; }
.range__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin: 0; }
.range__item p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Služby */

.services { background: var(--navy); color: #fff; }
.services__title { margin-bottom: 56px; max-width: 20ch; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 48px; }
.services__item { border-top: 3px solid var(--yellow); padding-top: 20px; }
.services__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 0 0 10px; }
.services__item p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--on-navy-muted); }

/* Značky */

.brands__title { margin-bottom: 40px; }
.brands__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.brands__grid li {
  height: 112px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .06em;
  color: #2a2f45;
  background: #fff;
}

/* Projekt EU */

.eu { background: #eef0f6; border-top: 1px solid #e0e3ee; }
.eu__inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.eu__photo { width: 100%; height: auto; display: block; border-radius: 6px; mix-blend-mode: multiply; }
.eu__body { display: flex; flex-direction: column; gap: 24px; }
.eu__title { font-size: clamp(34px, 4vw, 50px); }
.eu__lead { font-size: 19px; line-height: 1.55; margin: 0; font-weight: 600; color: var(--ink); }
.eu__text { font-size: 17px; line-height: 1.65; margin: 0; color: var(--text); text-wrap: pretty; }
.eu__note { font-size: 15px; line-height: 1.6; margin: 0; color: var(--muted); text-wrap: pretty; }
.eu__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #d3d7e6; font-size: 15px; }
.eu__badge { display: flex; align-items: center; gap: 14px; background: #fff; padding: 12px 18px 12px 12px; border-radius: 4px; }
.eu__badge svg { display: block; }
.eu__badge span { font-size: 15px; line-height: 1.2; font-weight: 600; color: #003399; }

/* Kontakt */

.contact { background: #fff; border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; }
.contact__info { display: flex; flex-direction: column; gap: 40px; }
.contact__title { margin-bottom: 20px; }
.contact__text { max-width: 44ch; }
.contact__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.h3-caps { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 17px; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.contact__links { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact__map { min-height: 420px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--line-strong); background: #ecebe4; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Patička */

.footer { background: var(--navy-dark); color: #aeb8e0; margin-top: auto; }
.footer__inner { padding-top: 36px; padding-bottom: 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Mobil */

@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section-pad { padding-top: 72px; padding-bottom: 72px; }
  .hero__body { padding-top: 48px; padding-bottom: 72px; }
  .about { padding-top: 72px; padding-bottom: 72px; }
  .eu__inner { padding-top: 72px; padding-bottom: 72px; }
  .nav__logo img { height: 72px; width: 173px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ekg { animation: none; }
  .to-top { transition: none; }
}
