/* ============================================================
   Novi kolesarski — site.css
   Shared design tokens, base styles, and reusable components.
   Source of truth: design-system.html (April 2026, v1.0).
   Extracted from the 11 mockups during Session 2 (27.5.2026).

   What lives here:
     - :root tokens (identical across all 11 mockups)
     - Resets + base typography
     - .wrap (max-width container)
     - .nav block (sticky nav, logo, links, language dropdown)
     - .btn family (.btn, .btn.ghost, .btn.light, hover, arrow)
     - .sec-head / section rhythm defaults (104px desktop, 64px mobile)
     - .cta dark band + .cta-form + .cta-photo (used on 5 pages)
     - footer block (identical on all 10 footered pages)
     - One shared responsive break at 880px (matches design-system.html)

   What stays inline per mockup:
     - .hero (homepage full-bleed)
     - .page-hero (light vs dark variants per page)
     - Page-specific content sections (.story, .entity, .legal, ...)
     - Mockup-specific responsive overrides
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --ink: #14171A;
  --ink-2: #3B3F42;
  --muted: #72757A;
  --line: #E3E2DB;
  --accent: #2F4F3A;
  --accent-soft: #E7ECE7;
  --r-card: 16px;
  --r-inner: 12px;
  --maxw: 1440px;
  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- RESET + BASE ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- LAYOUT CONTAINER ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,250,247,0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display);
}
.logo img { height: 28px; width: auto; display: block; }
.logo .word {
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative; top: -2px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--ink-2);
  margin-left: auto; margin-right: 40px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-sep {
  width: 1px; height: 14px;
  background: var(--line);
  display: inline-block;
  opacity: 0.9;
}
.nav-right { display: flex; align-items: center; gap: 16px; }

/* ---------- MOBILE NAV (hamburger) — hidden on desktop, shown ≤880px ---------- */
.nav-mobile { display: none; position: relative; }
.nav-mobile > summary { list-style: none; cursor: pointer; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-burger {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #FFFFFF;
  border-radius: 999px; color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-burger svg { width: 20px; height: 20px; display: block; }
.nav-burger .i-close { display: none; }
.nav-mobile[open] .nav-burger {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.nav-mobile[open] .nav-burger .i-menu { display: none; }
.nav-mobile[open] .nav-burger .i-close { display: block; }
.nav-mobile-panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: min(82vw, 320px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 8px;
  box-shadow: 0 12px 40px rgba(20,23,26,0.10), 0 2px 6px rgba(20,23,26,0.04);
  display: flex; flex-direction: column;
  z-index: 30;
  animation: langFade 0.16s ease-out;
}
.nav-mobile-link {
  display: block; padding: 13px 14px;
  border-radius: 9px;
  font-family: var(--f-body);
  font-size: 15px; color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile-link:hover,
.nav-mobile-link.is-active { background: var(--bg-alt); color: var(--ink); }
.nav-mobile-link.is-active { font-weight: 500; }
.nav-mobile-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.nav-mobile-cta { justify-content: center; margin: 0 6px; }
.nav-mobile-langs { display: flex; gap: 6px; padding: 2px 6px 4px; }
.nav-mobile-langs .lang-opt {
  flex: 1; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center; text-align: center;
  padding: 10px 4px;
  background: var(--bg-alt);
}
.nav-mobile-langs .lang-opt.is-active { background: var(--accent-soft); }

/* ---------- LANGUAGE DROPDOWN ---------- */
.lang-drop { position: relative; }
.lang-drop > summary { list-style: none; cursor: pointer; }
.lang-drop > summary::-webkit-details-marker { display: none; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 2px;
  border: 0; background: transparent;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-size: 12px; letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.lang-trigger:hover { color: var(--ink); }
.lang-trigger svg {
  width: 15px; height: 15px; display: block;
  color: var(--muted);
  transition: color 0.2s ease;
}
.lang-trigger:hover svg { color: var(--ink-2); }
.lang-current { font-weight: 600; color: var(--ink); }
.lang-caret {
  font-size: 9px; color: var(--muted);
  transition: transform 0.2s ease;
}
.lang-drop[open] .lang-caret { transform: rotate(180deg); }
.lang-drop[open] .lang-trigger { color: var(--ink); }
.lang-drop[open] .lang-trigger svg { color: var(--ink-2); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(20,23,26,0.08), 0 2px 6px rgba(20,23,26,0.04);
  display: flex; flex-direction: column; gap: 2px;
  z-index: 30;
  animation: langFade 0.16s ease-out;
}
@keyframes langFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0; background: transparent;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 13.5px; color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}
.lang-opt:hover { background: var(--bg-alt); color: var(--ink); }
.lang-opt.is-active { background: var(--accent-soft); color: var(--accent); }
.lang-opt-code {
  font-family: var(--f-display);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-opt.is-active .lang-opt-code { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--f-display);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.light {
  background: #EDEDE8; color: var(--ink); border-color: #EDEDE8;
  padding: 14px 22px; font-size: 14.5px;
}

/* ---------- SECTION RHYTHM ---------- */
section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.sec-num {
  font-family: var(--f-display);
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.sec-head {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: end;
  margin-bottom: 64px;
}
.sec-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 0; max-width: 22ch; font-weight: 500;
}
.sec-head p {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--accent); max-width: 44ch; margin: 0;
  font-size: 18px; line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- CTA (DARK BAND, 5 pages) ---------- */
.cta { background: #0E1824; color: #EDEDE8; border: none; padding: 72px 0; }
.cta .wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 12px; color: #EDEDE8; font-weight: 500;
  max-width: 20ch;
}
.cta .cta-sub {
  font-family: var(--f-display);
  font-weight: 400;
  color: #C9CAC4;
  font-size: 17px; line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 42ch;
  margin: 0 0 28px;
}
.cta-eyebrow {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
  color: #A7A8A3;
  max-width: 46ch;
  margin: 0 0 14px;
  line-height: 1.4;
}
.cta-photo {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  justify-self: end;
  border-radius: 14px;
  overflow: hidden;
  background: #1A2230 center/cover no-repeat;
}
.cta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-photo::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.94);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4F3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='1.5'/><path d='M3.5 6.5l8.5 6.5 8.5-6.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}
.cta-form {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 480px;
}
.cta-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.cta-form input,
.cta-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(237,237,232,0.16);
  color: #EDEDE8;
  font: inherit; font-family: var(--f-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: #8C8E92; }
.cta-form input:focus,
.cta-form textarea:focus {
  border-color: rgba(237,237,232,0.44);
  background: rgba(255,255,255,0.08);
}
.cta-form textarea {
  resize: vertical; min-height: 84px; font-family: var(--f-body);
}
.cta-submit {
  align-self: flex-start; margin-top: 6px; border: 0; cursor: pointer;
}

/* ---------- FOOTER ---------- */
footer { background: #FFFFFF; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot {
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: start;
  padding-bottom: 32px;
}
.foot-contact { justify-self: end; text-align: right; }
.foot-brand .brand img { height: 36px; width: auto; margin-bottom: 4px; }
.foot-brand p {
  color: var(--muted); font-size: 14.5px;
  max-width: 36ch; margin: 18px 0 0;
  line-height: 1.5;
}
.foot-contact h5 {
  font-family: var(--f-display);
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px; font-weight: 500;
}
.foot-contact ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.foot-contact li { padding: 4px 0; color: var(--ink-2); }
.foot-contact li a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
.foot-contact li a:hover { color: var(--accent); }

.foot-partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 0;
  /* Grid layout: [label][logo grid] on row 1, empty + funding caption on row 2.
     Funding caption now lives under the EU logo per CGP §3 visual hierarchy,
     not in .foot-bot anymore. */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 24px;
  row-gap: 12px;
}
.foot-partners-label {
  font-family: var(--f-display);
  font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500;
  align-self: center;
}
.foot-partners-grid {
  display: flex; flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.logo-slot {
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.logo-slot:hover { opacity: 1; }
/* Partner logos are clickable links — anchor must fill the slot
   so centering and hover effects continue to work. */
.logo-slot a {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  text-decoration: none;
}
.logo-slot img {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
.logo-slot--sm img { max-height: 75%; max-width: 105px; }
/* +10% / +15% visual bumps for logos that read too small at the default slot size.
   transform: scale keeps the slot bounds intact so grid alignment doesn't shift. */
.logo-slot--md img { transform: scale(1.10); transform-origin: center; }
.logo-slot--lg img { transform: scale(1.15); transform-origin: center; }
/* EU emblem — required by JR CZK 25 / EKP §3.1.1 to render in full color
   (overrides the muted opacity:0.75 default) and at a size ≥ the tallest
   other logo (Priloga IX §1.7). Vertical divider on the right visually
   anchors the EU emblem as the regulatory element. */
.logo-slot--eu {
  position: relative;
  opacity: 1;
  margin-left: 16px;
  padding-right: 28px;
  margin-right: 14px;
}
.logo-slot--eu img { transform: scale(1.15); transform-origin: center; }
.logo-slot--eu::after {
  content: "";
  position: absolute;
  right: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}

.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  font-size: 12.5px; color: var(--muted);
  font-family: var(--f-display);
  flex-wrap: wrap; gap: 12px;
}
/* Mandatory EU/MK co-financing statement — required by JR CZK 25.
   Lives in .foot-partners now (row 2, col 2) under the EU logo,
   visually tying the funding statement to the regulatory element. */
.foot-funding {
  margin: 0;
  font-size: 11.5px; line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  grid-column: 2;
  /* No padding-left: align caption with grid column start. The EU slot has
     margin-left:16px and the EU image is scale(1.20), which extends the
     image's visible left edge ~14px past the slot's CSS box — net result
     is the caption sits ~flush with the EU emblem's visible left edge. */
}
.foot-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-legal a {
  color: var(--muted); text-decoration: none;
  transition: color 0.18s ease;
}
.foot-legal a:hover { color: var(--ink); }
.foot-legal a.is-active { color: var(--ink); }
.foot-legal .dot { color: var(--line); }

/* ---------- RESPONSIVE (design-system.html canonical: 880px) ---------- */
@media (max-width: 880px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-mobile { display: block; }
  section { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .cta .wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot { grid-template-columns: 1fr; gap: 40px; }
  .foot-partners { grid-template-columns: 1fr; }
  .foot-partners > .foot-funding { grid-column: 1; padding-left: 0; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
}
