/* ZZ — Zápis zápasu · zapiszapasu.cz
   Světlá doprovodná paleta: bílá / #1a6b45 / #0f4d32
   Písma: Barlow 400/600, Barlow Condensed 800 (OFL) */

/* --- Fonty ------------------------------------------------------------ */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-800-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: #0f4d32;
  background: #ffffff;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: #0f4d32;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; }

a {
  color: #1a6b45;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover, a:focus { color: #0f4d32; }

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

/* --- Layout ----------------------------------------------------------- */
.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* --- Header ----------------------------------------------------------- */
.site-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 3px solid #1a6b45;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.site-title {
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: #0f4d32;
  margin-bottom: 0;
}
.site-title a {
  color: #0f4d32;
  text-decoration: none;
}

nav {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
nav a {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: #1a6b45;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
nav a:hover, nav a:focus {
  background: #e8f5ee;
  color: #0f4d32;
}
nav a[aria-current="page"] {
  background: #1a6b45;
  color: #fff;
}

/* --- Hero ------------------------------------------------------------- */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; }
.hero .lead {
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 36rem;
  margin: 0.8rem auto 1.5rem;
  color: #1a6b45;
}

/* --- Karty funkcí ----------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 1.5rem 0;
}
.card {
  background: #f0faf4;
  border: 2px solid #c8e6d5;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}
.card h3 {
  color: #1a6b45;
  margin-bottom: 0.3rem;
  text-transform: none;
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-weight: 800;
}
.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #0f4d32;
}

/* --- Screenshoty (placeholder) ---------------------------------------- */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}
.phone-frame {
  background: #e8f5ee;
  border: 2px dashed #1a6b45;
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1a6b45;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
}

/* --- Sekce ------------------------------------------------------------- */
.section {
  padding: 2rem 0;
}
.section + .section {
  border-top: 2px solid #e8f5ee;
}
.section--dark {
  background: #0f4d32;
  color: #ffffff;
  border-top: none;
}
.section--dark h2,
.section--dark h3 { color: #ffffff; }
.section--dark a { color: #8ae4aa; }
.section--dark a:hover { color: #ffffff; }

/* --- CTA tlačítko ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: #1a6b45;
  border-radius: 8px;
  transition: background 0.15s;
}
.btn:hover, .btn:focus {
  background: #0f4d32;
  color: #ffffff;
}

/* --- Footer ----------------------------------------------------------- */
.site-footer {
  padding: 1.5rem 0;
  border-top: 3px solid #1a6b45;
  font-size: 0.85rem;
  color: #1a6b45;
}
.site-footer a { color: #0f4d32; }

/* --- Stránky s textem (jak-zacit, pro-kluby, soukromi) ---------------- */
.prose h2 { margin-top: 1.8rem; }
.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; color: #0f4d32; }

/* --- Kroky (jak začít) ------------------------------------------------ */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.8rem;
  margin-bottom: 1.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: #1a6b45;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-size: 1rem;
}

/* --- Návrh upozornění ------------------------------------------------- */
.draft-notice {
  background: #fff3cd;
  border: 2px solid #d4a017;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #6b4f00;
}

/* --- 404 -------------------------------------------------------------- */
.page-404 {
  text-align: center;
  padding: 4rem 0;
}
.page-404 h1 { font-size: 3rem; }

/* --- Dark mode -------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f4d32;
    color: #e8f5ee;
  }
  h1, h2, h3 { color: #ffffff; }
  a { color: #8ae4aa; }
  a:hover, a:focus { color: #ffffff; }
  .site-header { border-bottom-color: #1a6b45; }
  .site-title a { color: #ffffff; }
  nav a { color: #8ae4aa; }
  nav a:hover, nav a:focus { background: #1a6b45; color: #fff; }
  nav a[aria-current="page"] { background: #1a6b45; color: #fff; }
  .card { background: #145b3c; border-color: #1a6b45; }
  .card h3 { color: #8ae4aa; }
  .card p { color: #e8f5ee; }
  .phone-frame { background: #145b3c; border-color: #1a6b45; color: #8ae4aa; }
  .section + .section { border-top-color: #1a6b45; }
  .btn { background: #4cc77d; color: #0f4d32; }
  .btn:hover, .btn:focus { background: #8ae4aa; color: #0f4d32; }
  .site-footer { border-top-color: #1a6b45; color: #8ae4aa; }
  .site-footer a { color: #ffffff; }
  .draft-notice { background: #3a3000; border-color: #d4a017; color: #ffe07a; }
  .prose strong { color: #ffffff; }
}

/* --- Responzivita ----------------------------------------------------- */
@media (min-width: 768px) {
  .site-header .wrap { flex-wrap: nowrap; }
  nav { width: auto; margin-top: 0; margin-left: auto; }
  .hero h1 { font-size: 2.8rem; }
}
