/* Pionýrská skupina Dobruška — hlavní stylopis
   Nahrazuje styles.css + images/style.css (pirobox). Bez JavaScriptu. */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebasneue-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: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebasneue-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;
}

:root {
  --green-dark: #14291d;
  --green: #1f3d2b;
  --red: #c01823;
  --red-dark: #96121b;
  --amber: #e8a01d;
  --ink: #22201b;
  --muted: #6d675e;
  --paper: #f5f1e6;
  --card: #fffdf7;
  --line: #e3dccb;
  --radius: 12px;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

/* ---------- navigace ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green-dark);
  border-bottom: 3px solid var(--red);
}

.site-nav .inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-nav .brand {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.site-nav .brand span { color: var(--amber); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav ul a {
  display: block;
  padding: 0.85rem 0.9rem;
  color: #efeadb;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.09em;
  line-height: 1;
}

.site-nav ul a:hover { color: var(--amber); }

.site-nav ul a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--amber);
}

/* mobilní menu: kompaktní, jeden posuvný řádek */
@media (max-width: 700px) {

  .site-nav .brand { padding: 0.45rem 0 0.1rem; font-size: 1.15rem; }
  .site-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav ul a {
    padding: 0.55rem 0.6rem 0.7rem;
    font-size: 1rem;
    white-space: nowrap;
  }
}

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

.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgb(20 41 29 / 0.45) 0%, rgb(20 41 29 / 0.05) 40%, rgb(15 30 21 / 0.82) 100%),
    url("../images/home/hero.jpg") center / cover no-repeat;
}

.hero .inner {
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
  padding: 5rem 1rem 3rem;
  color: #fff;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.45);
}

.hero h1 span { color: var(--amber); }

.hero p {
  margin-top: 0.75rem;
  max-width: 34rem;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}

.hero .actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.8rem 1.5rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
}

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

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

/* ---------- obsah ---------- */

main { max-width: 1150px; margin: 0 auto; padding: 0 1rem 3.5rem; }

.section { padding-top: 3rem; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--green-dark);
}

.section-head::after {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 24px);
  border-radius: 2px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgb(34 32 27 / 0.06);
}

.card > p + p { margin-top: 0.8rem; }

.lead { font-size: 1.12rem; }

/* kdo jsme + fotky */
.about { display: grid; gap: 1.5rem; }

@media (min-width: 860px) {
  .about { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgb(20 41 29 / 0.25);
}

.photo-strip img:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* ---------- tábor ---------- */

.camp { display: grid; gap: 1.75rem; }

@media (min-width: 860px) {
  .camp { grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; }
}

.camp .poster a { display: block; max-width: 380px; margin: 0 auto; }

.camp .poster img {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgb(20 41 29 / 0.35);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}

.camp .poster a:hover img { transform: rotate(0deg) scale(1.02); }

.facts {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
}

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

.facts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 0.7rem 1rem;
}

.facts .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.facts .value { font-weight: 700; font-size: 1.05rem; }

/* ---------- rychlé odkazy ---------- */

.quicklinks {
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) { .quicklinks { grid-template-columns: repeat(3, 1fr); } }

.quicklinks a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(34 32 27 / 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.quicklinks a:hover { transform: translateY(-2px); border-color: var(--red); color: var(--red-dark); }

.quicklinks img { width: 46px; height: 46px; object-fit: contain; }

/* ---------- tabulky (rozpis, kontakty) ---------- */

.table-wrap { overflow-x: auto; }

/* min. šířka: na telefonu se tabulka posouvá do strany, místo aby se mačkala */
table.plan { border-collapse: collapse; width: 100%; min-width: 640px; }

table.plan th, table.plan td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.plan th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- patička ---------- */

.site-footer {
  background: var(--green-dark);
  color: #cfd8cf;
  padding: 2.5rem 1rem 2rem;
  font-size: 0.92rem;
}

.site-footer .inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) { .site-footer .inner { grid-template-columns: 1fr 1fr; } }

.site-footer h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }

.sponsors {
  max-width: 1150px;
  margin: 2rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.sponsors a {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
}

.sponsors img { max-height: 52px; width: auto; }

.sponsors-note {
  max-width: 1150px;
  margin: 0.9rem auto 0;
  text-align: center;
  color: #8fa392;
}

/* ---------- hlavička podstránek ---------- */

.page-head {
  background:
    linear-gradient(180deg, rgb(20 41 29 / 0.78), rgb(20 41 29 / 0.78)),
    url("../images/home/head.jpg") center 60% / cover no-repeat;
  color: #fff;
  padding: 3rem 1rem 2.5rem;
}

.page-head .inner { max-width: 1150px; margin: 0 auto; }

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.page-head p { margin-top: 0.5rem; max-width: 40rem; color: #d9e2d9; }

/* ---------- historie táborů ---------- */

.history {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* na telefonu vždy aspoň dva sloupce, ať se plakáty neroztahují */
@media (max-width: 480px) {
  .history { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

.history li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 4px rgb(34 32 27 / 0.06);
}

.history a.poster-link { display: block; }

.history img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; }

.history .caption { padding: 0.7rem 0.8rem 0.9rem; font-size: 0.92rem; }
.history .caption strong { display: block; }

/* ---------- ke stažení ---------- */

.downloads {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 700px) { .downloads { grid-template-columns: 1fr 1fr; } }

.downloads a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.downloads a::before { content: "⬇"; color: var(--red); }
.downloads a:hover { border-color: var(--red); color: var(--red-dark); }
.downloads .type { margin-left: auto; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }

/* ---------- kroky (jak se přihlásit) ---------- */

.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  min-width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.15rem;
}

.steps .note { font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* ---------- výzva / highlight ---------- */

.callout {
  background: #fdf3d7;
  border: 1px solid #ecd9a0;
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
}

/* ---------- kontakty ---------- */

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 4px rgb(34 32 27 / 0.06);
}

.contact-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

.contact-card .role { color: var(--red); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.95rem; }

/* ---------- velká fotka v obsahu ---------- */

.photo-wide {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgb(20 41 29 / 0.25);
}

/* ---------- fotodeník (archiv táborů) ---------- */

.feed { max-width: 900px; margin: 0 auto; }

.feed h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  text-align: center;
  margin: 2.5rem 0 0.5rem;
}

.feed p { text-align: center; margin: 0.75rem auto; max-width: 44rem; }

.feed img {
  width: 100%;
  margin: 1rem auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgb(20 41 29 / 0.18);
}

