/* =========================================================================
   KEMPNÝ a spol., v.o.s. — shared stylesheet
   Design tokens, base, layout, components, page-specific blocks, responsive
   ========================================================================= */

/* ---------- 1. Design tokens --------------------------------------------- */
:root {
  /* Palette */
  --ink:        #0e1b2c;   /* primary deep navy */
  --ink-soft:   #2a3a4f;
  --paper:      #fbfaf6;   /* warm off-white background */
  --paper-2:    #f3efe6;   /* alt section background */
  --paper-3:    #ebe6d8;   /* deeper paper for cards */
  --rule:       #e2ddd0;   /* hairlines, borders */
  --rule-soft:  #efeadd;
  --gold:       #a07f3e;   /* accent for CTAs and marks */
  --gold-hover: #8a6c30;
  --gold-soft:  #c9a866;
  --muted:      #6b6f76;
  --danger:     #b3261e;

  /* Typography */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans:  "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
                "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base / reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
a:hover { border-bottom-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-7) 0; }

::selection { background: var(--gold); color: var(--paper); }

/* ---------- 3. Layout helpers ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section--alt    { background: var(--paper-2); }
.section--ink    { background: var(--ink); color: var(--paper); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  display: inline-block;
}
.section--ink .eyebrow { color: var(--gold-soft); }

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--ink .lead { color: #c9d1dc; }

.muted { color: var(--muted); }

/* ---------- 4. Header & nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 0;
  color: var(--ink);
}
.brand__mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: translateY(-2px);
}
.brand__sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 0;
  position: relative;
  padding: 6px 0;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  color: var(--ink);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav__cta { margin-left: var(--space-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

.nav-toggle.is-open .nav-toggle__bars { background: transparent; }
.nav-toggle.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-bottom: 1px solid transparent; }

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn--on-ink {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--on-ink:hover { background: var(--paper-2); border-color: var(--paper-2); }

.btn__arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 14px);
  pointer-events: none;
}
.hero__visual > * { position: relative; z-index: 1; }
.hero__visual-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-3);
}
.hero__visual-figure {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  font-style: italic;
  color: #f1eddf;
  margin-bottom: var(--space-5);
}
.hero__visual-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.hero__visual-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
  color: #c9d1dc;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero__visual-list li::before {
  content: "—";
  color: var(--gold-soft);
}
.hero__visual-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- 7. Service cards -------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--paper);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: background-color .25s var(--ease);
}
.service:hover { background: var(--paper-2); }
.service__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.service__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 6px;
}
.service__desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
  flex: 1;
}
.service__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-top: var(--space-3);
  border-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service__more::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.service:hover .service__more::after { transform: translateX(3px); }

/* Detailed service list (sluzby.html) */
.service-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--rule);
}
.service-detail:last-child { border-bottom: 1px solid var(--rule); }
.service-detail__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 8px;
}
.service-detail__title {
  font-size: 1.7rem;
  margin-bottom: var(--space-4);
}
.service-detail__body {
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.service-detail__list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  columns: 2;
  column-gap: var(--space-6);
}
.service-detail__list li {
  break-inside: avoid;
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink);
}
.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ---------- 8. Section headers & two-col -------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.section-head__title { margin: 0; }
.section-head__lead { margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

/* ---------- 9. Principles / values list --------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-7);
  list-style: none;
  margin: 0; padding: 0;
}
.principle {
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.principle__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.principle__desc { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- 10. Stats / figures bar ------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.figure__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink);
}
.figure__label {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 11. Quote / callout ----------------------------------------- */
.callout {
  padding: var(--space-7);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.callout__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  color: var(--paper);
}
.callout__text {
  color: #c9d1dc;
  margin: 0 0 var(--space-5);
}

/* ---------- 12. Contact page ------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-5);
}
.contact-item {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.contact-item:last-child { border-bottom: 1px solid var(--rule); }
.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item__value {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--ink);
}
.contact-item__value a { border-bottom: 1px solid var(--rule); }
.contact-item__value a:hover { border-bottom-color: var(--gold); }
.contact-item__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Form */
.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}
.field__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field__label .req { color: var(--gold); }
.field__input,
.field__textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
  width: 100%;
}
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field__textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-3); }

/* Map (embedded) */
.map {
  margin-top: var(--space-6);
  aspect-ratio: 16 / 7;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hours table */
.hours {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.97rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--ink-soft); }

/* ---------- 13. Footer --------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #c9d1dc;
  padding: var(--space-8) 0 var(--space-6);
}
.footer a { color: var(--paper); border-bottom-color: rgba(255,255,255,0.15); }
.footer a:hover { border-bottom-color: var(--gold); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { color: var(--paper); margin-bottom: var(--space-3); display: block; }
.footer__about { font-size: 0.95rem; color: #aab4c3; max-width: 32ch; }

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.85rem;
  color: #8b96a8;
}

/* ---------- 14. CTA strip ----------------------------------------------- */
.cta-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-7);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.cta-strip__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 var(--space-3);
}
.cta-strip__text { margin: 0; color: var(--ink-soft); }
.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ---------- 15. Responsive ---------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 5 / 4; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .two-col { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip__actions { justify-content: flex-start; }
  .service-detail { grid-template-columns: 1fr; gap: var(--space-3); }
  .service-detail__index { padding-top: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* Hamburger menu */
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-5);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    box-shadow: 0 12px 24px rgba(14, 27, 44, 0.06);
  }
  .nav.is-open { display: flex; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li { border-top: 1px solid var(--rule-soft); }
  .nav__list li:first-child { border-top: 0; }
  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }
  .nav__link.is-active::after { display: none; }
  .nav__cta { margin: var(--space-3) 0 0; width: 100%; justify-content: center; }

  .services { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
  .service-detail__list { columns: 1; }
}

/* ---------- 16. Print --------------------------------------------------- */
@media print {
  .site-header, .footer, .btn, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}
