/* ============================= */
/* VÝUKOVÉ MATERIÁLY (/materialy) */
/* ============================= */

.materialy hr {
  border: 0;
  border-top: 1px solid #e3efe3;
  margin: 36px 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Tlačítka --- */
.mat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #228B22;
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #228B22;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: background .15s, transform .15s;
}

.mat-btn:hover,
.mat-btn:focus-visible {
  background: #1b701b;
  border-color: #1b701b;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.mat-btn:focus-visible {
  outline: 3px solid #9ed69e;
  outline-offset: 2px;
}

.mat-btn-big {
  padding: 13px 26px;
  font-size: 1.1em;
}

.mat-btn-outline {
  background: #fff;
  color: #1b701b;
}

.mat-btn-outline:hover,
.mat-btn-outline:focus-visible {
  background: #eef8ee;
  color: #1b701b;
}

/* --- Úvod --- */
.mat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.mat-title {
  color: #1e7b1e;
  font-size: 2.1em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-wrap: balance;
}

.mat-lead {
  font-size: 1.2em;
  color: #444;
  margin: 0 0 16px;
}

.mat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.mat-badges span {
  background: #eef8ee;
  border: 1px solid #cfe8cf;
  color: #1e7b1e;
  font-weight: 700;
  font-size: 0.9em;
  padding: 4px 12px;
  border-radius: 999px;
}

.mat-zip-note {
  margin: 10px 0 0;
  font-size: 0.9em;
  color: #666;
}

.mat-hero-img {
  margin: 0;
}

.mat-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* --- Nadpisy sekcí --- */
.mat-h2 {
  text-align: center;
  font-size: 1.5em;
  margin: 0 0 24px;
}

.mat-h2-left {
  font-size: 1.25em;
  margin: 0 0 8px;
}

/* --- Mřížka kapitol --- */
.mat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.mat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fafdfa;
  border: 1px solid #e3efe3;
  border-radius: 10px;
  padding: 16px 14px 18px;
}

.mat-thumb {
  display: block;
  width: 100%;
  max-width: 200px;
  line-height: 0;
}

.mat-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: transform .2s, box-shadow .2s;
}

.mat-thumb:hover img {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.mat-card h3 {
  color: #2e8b57;
  font-size: 1.1em;
  margin: 14px 0 4px;
}

.mat-meta {
  font-size: 0.85em;
  color: #666;
  margin: 0 0 14px;
}

.mat-card .mat-btn {
  margin-top: auto;
}

/* --- Použití materiálů --- */
.mat-usage {
  background: #eef8ee;
  border-left: 4px solid #2e8b57;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 36px 0 0;
}

.mat-usage p {
  margin: 0;
  line-height: 1.55;
}

.mat-usage .fa-circle-check {
  color: #2e8b57;
}

/* --- Vznikly v BOTANICE --- */
.mat-origin {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.mat-origin-img {
  margin: 0;
}

.mat-origin-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.mat-origin-img figcaption {
  margin-top: 8px;
  font-size: 0.85em;
  color: #666;
  text-align: center;
}

.mat-origin-text p {
  font-size: 1.05em;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* --- Výzva --- */
.mat-cta {
  background: linear-gradient(135deg, #e6f5e6 0%, #d4edd4 100%);
  border: 1px solid #bfe0bf;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 40px 0 8px;
  text-align: center;
}

.mat-cta h2 {
  margin: 0 0 10px;
  color: #1e7b1e;
}

.mat-cta p {
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.mat-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Responzivita --- */
@media (max-width: 900px) {
  .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mat-hero,
  .mat-origin { grid-template-columns: minmax(0, 1fr); }
  .mat-hero-text { text-align: center; }
  .mat-badges { justify-content: center; }
}

@media (max-width: 640px) {
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  section.materialy { padding: 14px; }
  .mat-card h3 { font-size: 1em; overflow-wrap: anywhere; }
  .mat-title { font-size: 1.6em; }
  .mat-card { padding: 12px 10px 14px; }
  .mat-btn { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mat-btn,
  .mat-thumb img { transition: none; }
}
