/* Společenstvo půlčíků z.s. — lightweight one-page styles */

:root {
  --color-bg: #f7f5f0;
  --color-bg-alt: #eef3ef;
  --color-surface: #ffffff;
  --color-text: #1a2421;
  --color-text-muted: #4a5c56;
  --color-accent: #2d6a4f;
  --color-accent-dark: #1b4332;
  --color-accent-soft: #d8f3dc;
  --color-border: #d4ddd8;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 3px rgb(26 36 33 / 0.06);
  --shadow-md: 0 8px 30px rgb(26 36 33 / 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(247 245 240 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.logo abbr {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.75;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.page-section {
  padding-top: 3rem;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-link {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border, #e2e8e4);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-link:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.home-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.home-link p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--color-accent);
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 2rem;
}

.facts {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

/* Mission */
.mission-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-intro {
  max-width: 720px;
}

.mission-statement {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-accent-dark);
}

.mission-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .mission-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mission-points li {
  padding: 1.15rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: auto;
  align-self: start;
}

.mission-points h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
  text-wrap: balance;
  max-width: 22rem;
}

.mission-points p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-image {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card h3 {
  margin: 1rem 1.25rem 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* News */
.news-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.news-item-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-item-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.news-item-image {
  display: block;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.news-item h2,
.news-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-text);
}

.news-item time {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.news-item p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  align-self: flex-start;
}

.news-read-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Article detail */
.article-back {
  margin: 0 0 1rem;
}

.article-back a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.article-back a:hover {
  text-decoration: underline;
}

.article-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.article-detail .news-tag {
  margin-bottom: 1.25rem;
}

.article-hero-image {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.article-body a {
  color: var(--color-accent);
}

.article-motto {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  margin: 0;
  font-style: italic;
}

.article-author {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Board */
.board-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .board-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.board-list li {
  font-size: 0.95rem;
}

.board-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Contact */
.section-contact {
  background: var(--color-accent-dark);
  color: #e8f5e9;
}

.section-contact .section-label,
.section-contact h2 {
  color: #b7e4c7;
}

.section-contact a {
  color: #d8f3dc;
}

.section-contact a:hover {
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-details {
  font-style: normal;
  margin-top: 1.5rem;
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.placeholder-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.contact-form {
  background: rgb(255 255 255 / 0.08);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.15);
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.75rem 0 0.35rem;
}

.contact-form #name,
.contact-form #email,
.contact-form #message,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.95);
  font: inherit;
  color: var(--color-text);
}

.contact-form .btn-primary {
  margin-top: 1rem;
}

/* Honeypot proti spamu — nesmí být vidět, ale zůstává v DOM pro boty */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: #14241f;
  color: #b7c9c2;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-inner nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner a {
  color: #d8f3dc;
  text-decoration: none;
}

.footer-official {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  margin: 0;
  font-size: 0.95rem;
  color: #e8f5ee;
  line-height: 1.5;
}

.footer-official strong {
  font-weight: 600;
}

.footer-revision {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.55;
}

.footer-legal {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
  max-width: 52ch;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}
