/* Školící středisko ABENA – čisté HTML/CSS scaffold */
/* Základní reset (light) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: #1f2937; background: #ffffff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; }
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1e40af; /* tmavě modrá */
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --accent: #10b981; /* zelená doplňkově */
  --border: #e5e7eb;
  --surface: #f9fafb;
  --container: 1200px;
}

.container { max-width: var(--container); margin-inline: auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.small { padding: 32px 0; }

/* Header & nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand a { font-weight: 700; letter-spacing: .2px; color: var(--primary-700); }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav a { display: inline-block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 600; }
.site-nav a:hover { background: var(--surface); }
.site-nav a.active { color: var(--primary); background: #eef2ff; }
.site-nav .btn { background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 999px; }
.site-nav .btn:hover { background: var(--primary-600); }

/* Hero */
.hero { background: linear-gradient(180deg, #f8fafc, #fff); border-bottom: 1px solid var(--border); }
.hero .hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 48px 0; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; margin: 0 0 12px; }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-block; padding: 12px 16px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-600); }
.button.ghost { background: transparent; border-color: var(--border); }
.button.ghost:hover { background: var(--surface); }

/* Cards, grids */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

/* Tables */
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: #f3f4f6; font-weight: 700; }
.table tr:last-child td { border-bottom: none; }

/* Content */
main h1 { margin: 0 0 16px; font-size: clamp(26px, 4vw, 36px); }
main h2 { margin: 28px 0 12px; font-size: 22px; }
.lead { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.note { background: #fffbeb; border: 1px solid #f59e0b33; color: #92400e; padding: 12px 14px; border-radius: 10px; }


/* Dividers */
hr {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 16px 0;
}

/* Footer links */
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #e2e8f0; text-decoration: underline; }


/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea,
button,
label {
  font: inherit;
  font-size: 1rem;
}


/* Gallery */
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1; /* jednotná čtvercová výška/šířka */
  object-fit: cover; /* zarovnání a prořez do čtverce */
  object-position: center;
  border-radius: 10px;
  display: block;
  background: var(--surface); /* jemné pozadí při načítání */
}
.gallery-thumb:hover { opacity: .95; }

/* One‑row gallery strip (homepage) */
.gallery-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.gallery-row a { flex: 0 0 auto; }
.gallery-row .gallery-thumb { width: 72px; height: 72px; aspect-ratio: auto; object-fit: cover; }

/* One-row equal-width gallery that fills container */
.gallery-fill { display: flex; gap: 8px; align-items: stretch; }
.gallery-fill a { flex: 1 1 0; min-width: 0; }
.gallery-fill .gallery-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }



/* Lightbox (CSS-only) */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 1000; }
.lightbox:target { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 48px; }
.site-footer a { color: #e2e8f0; }
.footer-inner { padding: 28px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; }
.footer-inner > :nth-child(1),
.footer-inner > :nth-child(2) { grid-column: 1; }
.footer-inner > .footer-links { grid-column: 2; justify-self: end; }
.small { font-size: 13px; color: #94a3b8; }

/* Media */
@media (max-width: 900px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav ul { gap: 4px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}



/* Full‑bleed hero banner (wide, small height) */
.hero-banner { border-bottom: 1px solid var(--border); }
.hero-banner .media { width: 100%; }
.hero-banner img { width: 100%; height: clamp(140px, 29vw, 380px); object-fit: cover; display: block; }


/* Logo */
.brand img { height: 48px; width: auto; display: block; }
@media (max-width: 640px) { .brand img { height: 36px; } }
