/* ==========================================================================
   Nymburk Run Club — landing page
   Postaveno na NBK Run Club Design System (barvy, typografie, 4px grid).
   ========================================================================== */

/* ---------- Fonty ---------- */
@font-face {
  font-family: "Cal Sans";
  src: url("../assets/fonts/CalSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Zalando Sans SemiExpanded";
  src: url("../assets/fonts/ZalandoSansSemiExpanded-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  /* barvy */
  --ink: #032C27;          /* forest — text, tmavé plochy */
  --paper: #F0EDEE;        /* off-white — pozadí stránky */
  --white: #FFFFFF;        /* karty */
  --turquoise: #34D1BF;    /* akce — vždy s tmavým textem */
  --turquoise-light: #8AE7DC;
  --turquoise-pale: #D6F5F0;
  --yellow: #FFFC31;       /* akcent, focus ring, finish tape */
  --muted: #5A585E;
  --line: #DAD6D8;

  /* typografie */
  --font-display: "Cal Sans", sans-serif;
  --font-text: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-data: "Zalando Sans SemiExpanded", system-ui, sans-serif;

  /* rozměry */
  --content: 1120px;
  --radius-card: 10px;
  --radius-pill: 999px;
  --motion: 160ms ease-out;
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

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

.wrap { max-width: var(--content); margin: 0 auto; }

.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* Nadpis sekce — vycentrovaný, se žlutým „finish tape“ pravidlem */
.section-title {
  margin: 0;
  align-self: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(27px, 5.1vw, 51px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
}

/* ---------- Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion);
}

.btn--turquoise {
  background: var(--turquoise);
  color: var(--ink);
  border: 1px solid var(--turquoise);
}
.btn--turquoise:hover {
  background: var(--turquoise-light);
  border-color: var(--turquoise-light);
}

.btn--hero-cta {
  font-weight: 600;
}
.btn--hero-cta:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn--ink {
  background: var(--ink);
  color: var(--yellow);
  border: 1px solid var(--ink);
}
.btn--ink:hover {
  background: var(--turquoise);
  color: var(--ink);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--yellow);
}
.btn--yellow:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--ink);
}

.link-ondark {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--motion);
}
.link-ondark:hover { text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 24px 96px;
}
.hero__inner { display: flex; flex-direction: column; gap: 64px; }

.hero__logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(27px, 5.1vw, 51px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero__kicker {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--yellow);
}

.hero__lead { margin: 0; max-width: 62ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 8px;
}

/* ---------- Program ---------- */
.program {
  background: var(--turquoise-pale);
  padding: 96px 24px;
}

.schedule {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.schedule__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
}
.schedule__row--last { border-bottom: 1px solid var(--ink); }

.schedule__time {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
}

/* ---------- Výbava ---------- */
.kit {
  background: var(--paper);
  padding: 96px 24px;
}

.kit__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__label {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__text { margin: 0; }

/* ---------- Čísla ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-top: 32px;
  justify-items: center;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.stat__value {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Přihláška ---------- */
.cta {
  background: var(--yellow);
  border-radius: var(--radius-card);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.cta__copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta__text { margin: 0; max-width: 56ch; }

.cta__action { display: flex; justify-content: flex-end; }

/* ---------- Členství ---------- */
.member {
  background: var(--turquoise-pale);
  padding: 96px 24px;
}

.member__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.member__text { margin: 0; max-width: 56ch; }

/* ---------- Patička ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 24px;
}

.footer__logo { height: 48px; width: auto; object-fit: contain; margin: 0 auto; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.footer__col { display: flex; flex-direction: column; gap: 8px; }

.footer__label {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__text { margin: 0; }

/* ---------- Tlačítko zpět nahoru ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion);
}
.to-top:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--ink);
}
.to-top[hidden] { display: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 900px) {
  .kit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta { text-align: center; }
  .cta__copy { align-items: center; }
  .cta__action { justify-content: center; }
  .cta__text { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 32px 20px 64px; }
  .program,
  .member,
  .kit { padding: 64px 20px; }
  .footer { padding: 48px 20px; }
  .cta { padding: 32px 24px; }
  .schedule__row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .kit__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0ms !important; }
}
