/* ============================================================
   ARCHEO MORAVIA — style_am.css (kompletní, zkontrolovaná verze)
   ============================================================ */

/* Reset / základ */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

:root {
  --container-max: 1200px;
  --container-pad: clamp(16px, 5vw, 56px);
  --topbar-bg: #000033;
  --nav-bg:   #001148;
  --topbar-h: 56px;

  --text: #f7f7f7;
  --muted: #bbb;
  --page-odd:  #000033;
  --page-even: #000040;

  --cap-bg: #333;    /* šedé pozadí popisek (obrázky i videa) */
  --cap-fg: #f0f0f0;

  --btn:    #2953ff; /* modré tlačítko */
  --btn-h:  #1d3ecc; /* hover/focus */

  /* odkazy */
  --link:   #7db3ff; /* světle modrá */
  --link-h: #4f8cff; /* tmavší při hoveru */
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  background: #000;
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
  padding-top: var(--topbar-h);
}

/* Odkazy – světle modré, bez podtržení, po najetí tmavší */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:active {
  color: var(--link-h);
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--link-h);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

/* =======================
   Horní pruh (fixed top)
   ======================= */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--topbar-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand {
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(1rem,2.5vw,1.25rem);
  white-space: nowrap;
  line-height: 1;
}
.right-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
}
#langSelect {
  background: var(--topbar-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: .25rem;
  line-height: 0;
}
.menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media(max-width:768px){ .menu-toggle { display:inline-block; } }

/* ======================
   Hero sekce s videem
   ====================== */
header.hero {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
header.hero video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(.8);
  pointer-events: none; /* zabrání klikání a zobrazení ovládání */
}

/* No-save chování */
.no-save {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px,1.5vh,16px);
  text-align: center;
}
.hero-logo {
  width: 250px;
  height: auto;
  opacity: 0;
  transition: opacity 1s, width .5s;
}
@media(max-width:768px){
  .hero-logo { width: 190px; }   /* Zvětší logo na mobilu, původně 150px */
}
.hero-tagline {
  font-size: clamp(1rem,3vw,1.25rem);   /* Text pod logem větší, původně: clamp(.75rem,2vw,1rem) */
  line-height: 1.2;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 1s;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  font-weight: bold;
}

/* Plovoucí Facebook ikona v hero – nahoře vpravo */
.hero-fb{
  position:absolute;
  right: clamp(8px, 2vw, 16px);
  top: clamp(8px, 1.5vh, 16px) !important; /* tvrdě nahoru */
  bottom: auto !important;                 /* zruší případné staré bottom */
  z-index: 3;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 10px;
  color: #fff;
  transition: all .2s ease;
  text-decoration: none;
}
.hero-fb:hover{ background: rgba(24,119,242,0.8); color:#fff; }
.hero-fb svg { display: block; }

/* ======================
   Navigační pruh pod videem
   ====================== */
.nav-bar {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(0,0,0,.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: .65rem 0;
  overflow: auto;
}
/* MENU ODKAZY – stejné jako globální: světle modré, bez podtržení, hover tmavší */
.nav-inner a {
  color: var(--link);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  opacity: .95;
  transition: color .2s ease, opacity .2s ease;
}
.nav-inner a:hover {
  color: var(--link-h);
  text-decoration: none;
  opacity: 1;
}
@media(max-width:768px){
  .nav-bar { display: none; }
  .nav-bar.show { display: block; }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem 0;
  }
}

/* ======================
   Sekce obsahu
   ====================== */
main section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  flex-direction: column;
}
.section-inner { width: 100%; }
.section-inner h2, .section-inner p { text-align: left; }
section:nth-child(odd){ background: var(--page-odd); }
section:nth-child(even){ background: var(--page-even); }
h2 { margin-top: 0; }

/* ============================
   Obrázky s popisky (GRID)
   ============================ */
.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media(min-width:769px){
  .figure-grid { grid-template-columns: 1fr 1fr; }
}
figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
figure figcaption {
  background: var(--cap-bg);
  color: var(--cap-fg);
  font-size: .95rem;
  padding: .5rem;
  text-align: left;
}

/* ============================
   Videa + popisky (šedé pruhy)
   ============================ */
.youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 1rem auto 0;
  padding-bottom: 56.25%;
  height: 0;
}
.youtube-wrap iframe,
.youtube-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0; object-fit: cover;
}
.youtube-wrap > .fill {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #000;
}
.youtube-wrap > .fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.youtube-wrap > .fill .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-wrap > .fill .play-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}
.video-caption {
  max-width: 800px;
  margin: .5rem auto 0;
  font-size: .95rem;
  color: var(--cap-fg);
  background: var(--cap-bg);
  text-align: left;
  padding: .5rem;
}

/* ======================
   Kontaktní formulář
   ====================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 1.5rem auto;
}
.contact-form label {
  font-weight: bold;
  font-size: .95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #2a2f4a;
  font-size: 1rem;
  background: #0f1226;
  color: #f7f7f7;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 600px) {
  .contact-form .row { grid-template-columns: 1fr 1fr; }
}
.contact-form button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--btn);
  color: #fff;
  border: none;
  padding: .75rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background .2s ease;
}
.contact-form button:hover,
.contact-form button:focus {
  background: var(--btn-h);
  outline: none;
}
.contact-form .form-note {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--muted);
  text-align: left;
}

/* Honeypot – skrytý proti spamu */
.hidden-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ======================
   Sociální ikony
   ====================== */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
  margin-left: .5rem;
}
.social-icon:hover { color: #1877f2; }
.social-icon svg { display: block; }

/* ======================
   Patička
   ====================== */
footer {
  background: #050505;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
}
footer a { color: #fff; text-decoration: none; }
.back-top { display: block; margin-top: 1rem; }
.social-links { margin: .5rem 0; }

/* ======================
   Utility
   ====================== */
.left { text-align: left; }
