/* Grantissimo s. r. o. — grantové poradenstvo a projektový manažment
   Single stylesheet, no build step, no third-party resources.
   Fonts are self-hosted variable WOFF2 (Public Sans, Newsreader): one file per
   subset serves every weight, which is why each @font-face declares a range. */

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg: #f7f5f0;
  --ink: #1d211f;
  --ink-body: #4a504c;
  --ink-muted: #5a605c;
  --ink-faint: #7a7f7b;

  --line: #e3dfd6;
  --line-strong: #d9d4c9;
  --line-soft: #ebe7de;
  --line-field: #cfc9bd;

  --dark: #1d211f;
  --on-dark: #f7f5f0;
  --on-dark-muted: #c9c6bd;
  --on-dark-line: #4a504c;
  --on-dark-line-soft: #3a3f3c;

  /* Brand accent, measured off assets/logo-grantissimo.svg so the page and the
     logo are one colour. Change is one line here and nowhere else; the palettes
     the design was first drawn with are kept for reference:
       logo    oklch(39% 0.065 199) / oklch(78% 0.07 199)  — in use
       zelena  oklch(42% 0.07 165)  / oklch(78% 0.09 165)
       modra   oklch(40% 0.08 250)  / oklch(78% 0.08 250)
       bordova oklch(40% 0.10 20)   / oklch(78% 0.08 30)  */
  --acc: #065053;
  --acc: oklch(39% 0.065 199);
  --acc-soft: #80c5c9;
  --acc-soft: oklch(78% 0.07 199);
  --gold: #c19f68;
  --gold: oklch(72% 0.083 79);

  --shell: 1200px;
  --gutter: 24px;
  /* How far the header card floats in from the viewport edge. The card's width and
     padding are derived from this plus --gutter (see .site-header__inner), so the
     wordmark and the phone button land exactly on the content's text column. Change
     either value and the alignment still holds. */
  --header-inset: 8px;
  --header-border: 1px;
  --radius: 2px;
  --radius-card: 6px;
  --section-pad: clamp(72px, 10vw, 128px);

  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;

  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f7f5f0;
  background: var(--bg);
  color: #1d211f;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--acc);
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-top: 16px;
  padding: 0 var(--header-inset);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: calc(var(--shell) - 2 * var(--header-inset));
  margin: 0 auto;
  padding: 12px calc(var(--gutter) - var(--header-inset) - var(--header-border));
  background: rgba(247, 245, 240, 0.88);
  border: var(--header-border) solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px rgba(29, 33, 31, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Header brand. The logo is a two-colour SVG, so it carries its own fill and is
   sized by height alone — the viewBox supplies the ratio, so `width: auto` costs
   no layout shift. Its height is what the header row is built around: keep it at
   or below the 44px phone button and the card keeps its current height. */
.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  display: block;
  width: auto;
  height: 44px;
}

/* The footer still sets the name as live text on the dark panel. */
.wordmark {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-box: trim-both cap alphabetic;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a[aria-current='true'] {
  color: var(--acc);
}

/* Phone call-to-action — label on wide screens, icon-only when compact. */
.btn-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--acc);
  color: #fff;
  border-radius: var(--radius);
}

.btn-tel:hover {
  color: #fff;
  opacity: 0.88;
}

.btn-tel--icon {
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

/* Compact navigation. <details> is the disclosure so the menu opens and closes
   without JavaScript; js/main.js only adds Escape, click-away and close-on-link. */
.site-header__compact {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-mobile > summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile[open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-mobile[open] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-mobile[open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  padding: 4px calc(var(--gutter) - var(--header-inset) - 2 * var(--header-border));
  background: rgba(247, 245, 240, 0.97);
  border: var(--header-border) solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(29, 33, 31, 0.1);
  font-size: 17px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-panel a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.nav-panel a:last-child {
  border-bottom: 0;
}

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

/* The negative margin lets the decoration bleed up behind the sticky header
   while `overflow: hidden` keeps it from widening the page. */
.hero {
  position: relative;
  margin-top: -100px;
  padding-top: 100px;
  overflow: hidden;
}

.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__deco > * {
  position: absolute;
  display: block;
}

.hero__deco-blob {
  right: -6%;
  top: calc(4% + 50px);
  height: calc(86% - 50px);
  max-height: min(60vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in oklch, var(--acc) 9%, var(--bg));
  filter: blur(2px);
}

.hero__deco-ring {
  right: 20%;
  top: calc(8% + 50px);
  width: min(30vw, 340px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in oklch, var(--acc) 22%, var(--bg));
  border-radius: 50%;
}

.hero__deco-square {
  right: 6%;
  bottom: calc(min(22vw, 260px) * 0.21 + 12px);
  width: min(22vw, 260px);
  aspect-ratio: 1;
  background: color-mix(in oklch, var(--acc) 6%, var(--bg));
  transform: rotate(45deg);
}

.hero__deco-dot {
  right: 30%;
  bottom: calc(18% - 30px);
  width: min(5vw, 52px);
  aspect-ratio: 1;
  background: color-mix(in oklch, var(--gold) 55%, var(--bg));
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) var(--gutter) clamp(64px, 9vw, 120px);
}

.hero__title {
  max-width: 18ch;
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* The former headline, kept under the new one as a subtitle: same serif, a step
   down in size so the hierarchy reads h1 → tagline → lede. */
.hero__tagline {
  max-width: 40ch;
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-body);
}

.hero__lede {
  max-width: 52ch;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-body);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  padding: 16px 26px;
  font-weight: 500;
  border-radius: var(--radius);
}

.btn--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.btn--dark:hover {
  background: var(--acc);
  color: #fff;
}

.btn--outline {
  border: 1px solid var(--ink);
}

.btn--outline:hover {
  border-color: var(--acc);
}

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

/* `.section` itself carries no declarations — it is the BEM block that
   `.section--dark` and `.section--accent` hang off, and the spacing lives on
   `.section__inner`. Do not delete it from the markup. */
.section__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

/* Anchored sections sit under a sticky header; keep their heading clear of it. */
[id] {
  scroll-margin-top: 104px;
}

.section__title {
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.section__lede {
  max-width: 54ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
}

/* Heading beside an introductory paragraph, stacking when there is no room. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px 64px;
}

.section--dark {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--dark);
  color: var(--on-dark);
}

.section--dark .section__inner {
  padding-block: clamp(72px, 10vw, 120px);
}

.section--accent {
  background: var(--acc);
  color: #fff;
}

.section--accent a:hover {
  color: #fff;
  opacity: 0.8;
}

.section--accent .section__inner {
  padding-block: clamp(72px, 10vw, 120px);
}

/* --------------------------------------------------------------- služby --- */

.services {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}

.service {
  display: grid;
  gap: 10px 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-strong);
}

.service__title {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.service__num {
  flex: none;
  width: 26px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--acc);
}

.service__title h3 {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
}

/* 46px = the 26px number column plus its 20px gap, so the text lines up. */
.service__desc {
  margin: 0;
  padding-left: 46px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.service__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}

.service__list li {
  display: flex;
  gap: 14px;
}

.service__list li::before {
  content: '—';
  color: var(--acc);
}

@media (min-width: 820px) {
  .service {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'title .'
      'desc  list';
    align-items: baseline;
  }

  .service__title { grid-area: title; }
  .service__desc  { grid-area: desc; }
  .service__list  { grid-area: list; }
}

/* --------------------------------------------------------------- postup --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
}

.step__num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--acc-soft);
}

.step h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

/* ----------------------------------------------------- projekty v praxi --- */

/* Case cards. Each one is a grid so the blocks keep an even rhythm however long
   the copy runs; .case__head regroups the title, project and client tightly
   against that rhythm rather than fighting it with negative margins. */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 56px;
}

.case {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px 28px;
  background: #efede7;
  background: color-mix(in oklch, var(--acc) 4%, var(--bg));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
}

.case__status {
  justify-self: start;
  margin: 0;
  padding: 5px 13px;
  border: 1px solid var(--line-field);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--acc);
}

.case__head {
  display: grid;
  gap: 6px;
}

.case__title {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
}

.case__project {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.case__client {
  margin: 0;
  font-size: 15px;
}

.case__client a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.case__facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.5;
}

.case__facts dt {
  font-weight: 600;
}

.case__facts dd {
  margin: 3px 0 0;
  color: var(--ink-muted);
}

.case__role-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.case__role-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.case__role-name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------------------------------------- pre koho --- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 10px 18px;
  border: 1px solid var(--line-field);
  border-radius: 999px;
  font-size: 16px;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 28px;
}

.values h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.values p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- kontakt --- */

.contact {
  display: grid;
  gap: 20px;
}

.contact__invite {
  max-width: 44ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.contact__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.contact__line {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  color: #fff;
}

.contact__addr {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

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

.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
}

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}

.wordmark--footer {
  font-size: 24px;
  color: var(--on-dark);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--acc-soft);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line-soft);
  font-size: 13px;
}

/* ---------------------------------------------------- legal / 404 pages --- */

.legal {
  max-width: 72ch;
  display: grid;
  gap: 16px;
}

.legal h1 {
  margin-bottom: 8px;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.legal h2 {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.legal p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-body);
}

.legal a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__updated {
  font-size: 14px;
  color: var(--ink-faint);
}

.legal__back {
  margin-top: 16px;
  font-weight: 500;
}

.legal__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.legal__lede {
  font-size: 17px;
}

.legal dl {
  display: grid;
  gap: 20px;
  margin: 4px 0 0;
}

.legal dt {
  font-weight: 600;
  font-size: 16px;
}

.legal dd {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-body);
}

.legal__note {
  padding: 16px 20px;
  background: color-mix(in oklch, var(--acc) 5%, var(--bg));
  border-left: 2px solid var(--acc);
  font-size: 15px;
}

/* -------------------------------------------------------------- utility --- */

.nowrap {
  white-space: nowrap;
}

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 939px) {
  .site-nav {
    display: none;
  }

  .site-header__compact {
    display: flex;
  }

  .brand__logo {
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle__bar {
    transition: none;
  }
}
