/*
 * Advea — advea.eu
 * Mobile-first. Tokeny a hodnoty dle design handoffu (docs/inputs/…).
 * Breakpointy: 561 / 761 / 1041 / 1200 / 1500 px.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --white: #ffffff;
  --ink: #1a1815;
  --rumelka: #d03b2d;
  --rumelka-dark: #a72e22;
  --petrol: #0d91a6;
  --petrol-600: #027e92;
  --petrol-hover: #01606f;
  --mist: #f7f6f5;
  --gray-600: #6b6560;
  --gray-400: #a39c94;
  --line: #e5e1df;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Kanit", "Helvetica Neue", Arial, sans-serif;

  --container-max: 1520px;
  --container-pad: clamp(20px, 6vw, 140px);
  --section-gap: clamp(80px, 9vw, 130px);
  --corner: 0 0 44px 0; /* čtvrtkruhový roh — vždy pravý dolní */
}

/* ------------------------------------------------------------------ base */

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

html {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-serif);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--petrol-600);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 24px;
}

/* ------------------------------------------------------------- container */

/*
 * Kontejner dle designu: obsah max 1520 px + padding okolo
 * (content-box, aby padding obsah nezužoval).
 */
.container {
  box-sizing: content-box;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ------------------------------------------------------------ typography */

/*
 * Eyebrow v petrol-600, ne petrol: 13px text potřebuje AA kontrast 4,5:1
 * (petrol má na bílé jen 3,73:1 — dle brandu §3 je pro text určen
 * petrol-600; grafický petrol zůstává velkým číslům kroků).
 */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol-600);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.2;
  text-wrap: pretty;
  margin-top: 18px;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-block;
  background: var(--rumelka);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 6px;
  transition: background 180ms ease;
}

.button:hover {
  background: var(--rumelka-dark);
}

/* --------------------------------------------------------- content links */

.statement__role,
.site-footer__links a,
.error-page a {
  color: var(--petrol-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.site-footer__links a:hover,
.error-page a:hover {
  color: var(--petrol-hover);
}

/*
 * Podpis u výroku: klikatelný je celý („jméno · funkce“ → LinkedIn),
 * odkazově ale vypadá jen funkce — jméno zůstává tichý inkoust (brand §9).
 */
.statement__identity {
  color: inherit;
  text-decoration: none;
}

/* Na ploše mist nestačí petrol-600 na AA (4,42:1) — o stupeň tmavší */
.statement__role {
  color: var(--petrol-hover);
}

.statement__identity:hover .statement__role {
  color: var(--ink);
}

/* --------------------------------------------------------------- skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--white);
  color: var(--petrol-600);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 20px;
}

.skip-link:focus-visible {
  left: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__group {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Nav odkazy — mobil: panel pod barem, desktop: řádek */
.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-nav__link {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--rumelka), var(--rumelka));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background-size: 100% 1px;
}

.site-header.is-open .site-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--container-pad) 28px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
}

.lang-switcher__divider {
  color: var(--line);
}

/*
 * Aktuální jazyk = klidný stav (ink), cílový jazyk = odkaz (petrol-600,
 * barva klikatelnosti dle brandu). Vědomá odchylka od handoffu, který měl
 * role obráceně — rozhodnutí majitele 15. 7. 2026.
 */
.lang-switcher__item {
  color: var(--petrol-600);
  text-decoration: none;
  transition: color 150ms ease;
}

.lang-switcher__item:hover {
  color: var(--petrol-hover);
}

.lang-switcher__item.is-active {
  color: var(--ink);
  font-weight: 500;
}

.nav-toggle {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  padding: 4px 0 7px;
  background-image: linear-gradient(var(--rumelka), var(--rumelka));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 180ms ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background-size: 100% 1px;
}

@media (min-width: 1041px) {
  .site-header__group {
    gap: 52px;
  }

  .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .nav-toggle {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */

.hero__inner {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px) clamp(80px, 10vw, 140px);
}

/*
 * Trefoil-echo: jediný kulatý dekorativní prvek na stránce.
 * Bleeduje z kontejneru vpravo, horní částí zajíždí pod bar;
 * na mobilu se skrývá úplně (kázeň dle brand definice §4).
 */
.hero__echo {
  display: none;
  position: absolute;
  pointer-events: none;
}

.hero__title {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 820px;
}

.hero__lead {
  position: relative;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 620px;
  margin-top: 44px;
}

.hero__cta {
  position: relative;
  margin-top: 52px;
}

@media (min-width: 761px) {
  .hero__echo {
    display: block;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -120px;
  }
}

@media (min-width: 1200px) {
  .hero__echo {
    width: 540px;
    height: 540px;
    right: -130px;
    top: -90px;
  }
}

@media (min-width: 1500px) {
  .hero__echo {
    width: 760px;
    height: 760px;
    right: -160px;
    top: -120px;
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding-bottom: var(--section-gap);
}

.section__inner {
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

/* -------------------------------------------------------------- services */

.services__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 44px;
  margin-top: 64px;
}

.services__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
}

.services__text {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-600);
}

@media (min-width: 1041px) {
  .services__list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(28px, 3.4vw, 48px);
  }

  /* Vertikální dělítka mezi sloupci */
  .services__item + .services__item {
    border-left: 1px solid var(--line);
    padding-left: clamp(28px, 3.4vw, 48px);
  }
}

/* ------------------------------------------------- statement (výrok CEO) */

/*
 * Podepsaný úsudek (brand §9, poloha „podepsaná“) — ne testimonial:
 * žádné uvozovky, hranatá fotka, podpis jako metadata.
 * Rumělková linka = border panelu; na mobilu se otáčí na horní hranu.
 */
.statement__panel {
  background: var(--mist);
  border-radius: 0 0 32px 0;
  border-top: 4px solid var(--rumelka);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.statement__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.statement__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement__body {
  padding: clamp(40px, 5vw, 56px) clamp(32px, 5vw, 72px) clamp(36px, 4vw, 48px)
    clamp(32px, 4vw, 64px);
}

.statement__text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.28;
  text-wrap: pretty;
}

.statement__signature {
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
}

.statement__name {
  font-weight: 500;
}

.statement__separator {
  color: var(--gray-400);
}

@media (min-width: 761px) {
  .statement__panel {
    flex-direction: row;
    border-top: none;
    border-left: 4px solid var(--rumelka);
    border-radius: var(--corner);
  }

  .statement__photo {
    width: 280px;
    flex: 0 0 280px;
    aspect-ratio: 1 / 1;
  }

  .statement__body {
    align-self: center;
  }
}

@media (min-width: 1200px) {
  /* Aforismus na jednom řádku je tvrzení, na dvou odstavec (brand §9). */
  .statement__text {
    white-space: nowrap;
  }
}

/* ------------------------------------------------- steps (jak pracujeme) */

.steps__list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 72px;
  text-align: center;
}

.steps__item {
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 76px;
  line-height: 1;
  color: var(--petrol);
}

/*
 * Kruhová dramaturgie (brand §4): kružnice se uzavírá kolem posledního
 * kroku — tenká rumělková, číslo zůstává petrolejové.
 */
.steps__item:last-child::before {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  border: 1.5px solid var(--rumelka);
  border-radius: 50%;
}

.steps__text {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.55;
}

@media (min-width: 561px) {
  .steps__list {
    grid-template-columns: 1fr 1fr;
    gap: 44px 48px;
  }
}

@media (min-width: 1041px) {
  .steps__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: left;
  }

  .steps__item::before {
    justify-content: flex-start;
  }

  .steps__item:last-child::before {
    justify-content: center;
    margin-inline: 0;
  }
}

/* ----------------------------------------------------------------- about */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about__text {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.65;
}

/* Sekce je bez fotky (copy FINÁLE) — dvousloupcový grid drží délku
   řádku textu, pravý sloupec je záměrné prázdno. */
@media (min-width: 1041px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------ contact + pečeť */

.contact {
  padding-bottom: 0;
}

.contact__inner {
  border-top: 1px solid var(--line);
  padding-block: clamp(80px, 10vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__trefoil {
  width: 56px;
  height: 56px;
}

.contact__seal {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.25;
  text-wrap: pretty;
}

.contact__cta {
  margin-top: 52px;
}

/* Kontaktní e-mail je jen tisková náhrada CTA tlačítek (print.css) */
.print-email {
  display: none;
}

/* ---------------------------------------------------------------- footer */

.site-footer__inner {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
}

/* Tiráž v gray-600, ne gray-400 (2,71:1) — 13px text musí splnit AA */
.site-footer__imprint {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gray-600);
}

.site-footer__links {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
}

/* ------------------------------------------------------------ error page */

.error-page__inner {
  padding-block: clamp(80px, 11vw, 150px);
}

.error-page__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.12;
}

.error-page__text {
  margin-top: 28px;
  max-width: 620px;
}
