/* Otter Horizon — otterhorizon.com
   Brand: Námořní kobalt #1B3A8F · Mandarinka #F47A20 · Půlnoční inkoust #14203A
   Světlá modrá #CFE0F5 · Světlá oranžová #FBDDBD · Sněžná bílá #FAFBFD
   Písmo: Catamaran (self-hosted). Design podle zásad webů pro ADHD:
   žádný pohyb, jeden hlavní cíl na obrazovku, krátké bloky, vzdušno. */

@font-face {
  font-family: "Catamaran";
  src: url("/assets/fonts/Catamaran.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --kobalt: #1B3A8F;
  --mandarinka: #F47A20;
  --mandarinka-tmava: #D96812;
  --ink: #14203A;
  --svetla-modra: #CFE0F5;
  --svetla-modra-plocha: #EAF1FA;
  --svetla-oranzova: #FBDDBD;
  --bila: #FAFBFD;
  --seda-linka: #DCE3EE;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Catamaran", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bila);
  text-align: left;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--kobalt); }
a:hover { color: var(--mandarinka-tmava); }

h1, h2, h3 { line-height: 1.2; color: var(--kobalt); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }

p + p { margin-top: .9rem; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--seda-linka);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand .b-otter { color: var(--mandarinka); }
.brand .b-horizon { color: var(--kobalt); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .97rem;
}
.site-nav a:hover { color: var(--kobalt); text-decoration: underline; }
.site-nav .btn { color: #fff; }
.site-nav .btn:hover { color: #fff; text-decoration: none; }

@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--mandarinka);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--mandarinka-tmava); }
.btn:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.btn-ghost {
  background: transparent;
  color: var(--kobalt);
  border: 2px solid var(--seda-linka);
}
.btn-ghost:hover { background: var(--svetla-modra-plocha); color: var(--kobalt); }

.btn-outline {
  display: inline-block;
  background: #fff;
  color: var(--mandarinka-tmava);
  font-weight: 700;
  font-size: 1.02rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--mandarinka);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover { background: var(--svetla-oranzova); color: var(--mandarinka-tmava); }
.btn-outline:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 2px; }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--svetla-modra-plocha); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mandarinka-tmava);
  margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; max-width: 44rem; }

/* ---------- hero ---------- */
.hero { padding: 5rem 0 4.5rem; background: #FFFFFF; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-mascot { text-align: center; }
.hero-mascot img { max-height: 300px; }
.hero-tagline {
  margin-top: 1rem;
  color: var(--kobalt);
  font-weight: 600;
  font-style: italic;
  font-size: .95rem;
}
.hero-cta { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .9rem; color: #47526b; margin-top: .8rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mascot { order: -1; }
  .hero-mascot img { max-height: 190px; }
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: 1.3rem;
  margin-top: 2rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--seda-linka);
  border-radius: 12px;
  padding: 1.6rem;
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .15rem .9rem;
  border-radius: 999px;
  background: var(--mandarinka);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

/* časová osa mezi kroky — výrazné šipky ve směru postupu */
.timeline { position: relative; }
.timeline .card { position: relative; overflow: visible; }
@media (min-width: 861px) {
  .timeline { gap: 2.4rem; }
  .timeline .card:not(:last-child)::after {
    content: "➜";
    position: absolute;
    top: calc(1.6rem + .1rem);
    right: -2.15rem;
    color: var(--mandarinka);
    font-size: 1.7rem;
    line-height: 1;
  }
}
@media (max-width: 860px) {
  .timeline { gap: 2.4rem; }
  .timeline .card:not(:last-child)::after {
    content: "➜";
    position: absolute;
    left: 50%;
    bottom: -2rem;
    transform: translateX(-50%) rotate(90deg);
    color: var(--mandarinka);
    font-size: 1.7rem;
    line-height: 1;
  }
}

/* ---------- about ---------- */
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2rem;
}
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--seda-linka); border-radius: 12px; padding: 1.6rem; }
.person h3 { color: var(--ink); }
.person .role { color: var(--kobalt); font-weight: 700; font-size: .95rem; }
.person a { font-weight: 600; font-size: .95rem; }

.person-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--svetla-modra);
  flex-shrink: 0;
}
.avatar-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--svetla-modra);
  color: var(--kobalt);
  font-weight: 800;
  font-size: 1.3rem;
}
.avatar-sm { width: 48px; height: 48px; font-size: .95rem; border-width: 2px; }

.socials { display: flex; align-items: center; gap: .9rem; margin-top: .9rem; }
.socials a { color: var(--kobalt); display: inline-flex; align-items: center; }
.socials a svg { display: block; width: 22px; height: 22px; }
.socials a:hover { color: var(--mandarinka-tmava); }

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }
.project { background: #fff; border: 1px solid var(--seda-linka); border-radius: 12px; padding: 1.5rem; }
.project { display: flex; flex-direction: column; align-items: flex-start; }
.project-more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--mandarinka-tmava);
}
.project-more::after { content: " →"; }
.project-more:hover { text-decoration: underline; }

.project .tag {
  display: inline-block;
  background: var(--svetla-modra);
  color: var(--kobalt);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: .1rem .7rem;
  margin-bottom: .7rem;
}
/* barvy štítků podle cílové skupiny */
.project .tag-byznys { background: var(--svetla-oranzova); color: var(--mandarinka-tmava); }
.project .tag-deti   { background: var(--svetla-modra); color: var(--kobalt); }
.project .tag-rodina { background: #DCF0E0; color: #1A6B3C; }
.project .tag-zdravi { background: #EDE4F6; color: #6A3E96; }
.project h3 { color: var(--ink); }

/* ---------- reference ---------- */
.quote { display: flex; flex-direction: column; }
.quote > p:first-child { font-style: italic; }
.quote-author {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .95rem;
  color: #47526b;
}
.quote-author strong { color: var(--ink); }

/* ---------- contact ---------- */
.contact-call { margin-top: 1.2rem; font-weight: 700; }
.contact-alts { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--seda-linka); }

/* ---------- kalendář (/kalendar) ---------- */
.calendar-section .lead { margin-bottom: 1.5rem; }
.calendar-embed {
  background: #fff;
  border: 1px solid var(--seda-linka);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

/* ---------- footer brand ---------- */
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .97rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #B7C3D8;
  border-radius: 8px;
  padding: .65rem .8rem;
}
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--svetla-modra);
  border-color: var(--kobalt);
}
textarea { min-height: 140px; resize: vertical; }
.field-error { color: #B3261E; font-size: .9rem; margin-top: .25rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #B3261E; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.consent input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; }

.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1a6b3c; }
.form-status.err { display: block; color: #B3261E; }

.contact-alt { font-size: .95rem; color: #47526b; margin-top: 1rem; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--kobalt);
  color: #E8EEF9;
  padding: 2.5rem 0;
  font-size: .95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: #fff; }
.site-footer .motto { font-style: italic; color: var(--svetla-modra); }

/* ---------- cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 2px solid var(--kobalt);
  box-shadow: 0 -4px 16px rgba(20, 32, 58, .12);
  padding: 1rem 0;
  z-index: 100;
  display: none;
}
.cookie-bar.visible { display: block; }
.cookie-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-bar p { font-size: .93rem; max-width: 40rem; }
.cookie-actions { display: flex; gap: .8rem; }
.cookie-actions .btn, .cookie-actions .btn-ghost {
  font-size: .93rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

/* ---------- gdpr page ---------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal ul { padding-left: 1.3rem; margin: .6rem 0; }
.legal li { margin-bottom: .35rem; }
.back-home { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

/* respekt k uživatelům, kteří si vypnuli animace */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
