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

/* ===========================
   BASE
   =========================== */

body {
  font-family:Georgia, 'Times New Roman', Times, serif;
}

.parch {
  background: #f5ead0;
  min-height: 100vh;
  color: #2b1d0e;
}

/* ===========================
   Grafické prvky
   =========================== */

.wrap {
  position: relative;
  margin: 1rem;
}

.border-outer {
  border: 3px solid #6b3e1a;
  padding: 3px;
}

.border-inner {
  border: 1px solid #6b3e1a;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #6b3e1a;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%);
}

.corner.tl { top: 4px; left: 4px; }
.corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* ===========================
   Hlavička
   =========================== */

.herald {
  background: #000000;
  padding: 1.5rem 2rem;
  text-align: center;
}

.herald::before,
.herald::after {
  content: '+ + +';
  color: #c8922a;
  font-size: 14px;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 0.5rem;
}

.crest {
  width: 64px;
  height: 64px;
  background: #6b3e1a;
  border-radius: 4px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 26px;
  color: #f5ead0;
  border: 2px solid #c8922a;
}

.decree {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #c8922a;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

.main-title {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: #f5ead0;
  line-height: 1.1;
}

.subtitle {
  font-family: italic;
  font-size: 16px;
  color: #d4a84b;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
}

.salary-band {
  display: inline-block;
  background: #3d1f08;
  color: #d4a84b;
  border: 1px solid #c8922a;
  border-radius: 3px;
  padding: 4px 12px;
  font-family: Italic;
  font-size: 11px;
}

.deadline {
  font-family: Italic;
  font-size: 11px;
  color: rgba(212, 168, 75, 0.6);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* ===========================
   Grafické prvky
   =========================== */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #6b3e1a;
}

.divider-ornament {
  color: #6b3e1a;
  font-size: 18px;
  font-family: 'Crimson Text', serif;
}



.columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: start;
}

@media (max-width: 620px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.main-col {
  padding: 2rem 2rem 2rem 2.5rem;
  border-right: 1px solid #c4a06a;
}

.side-col {
  padding: 2rem;
}

/* ===========================
   O nás a o pozici
   =========================== */

.section-head {
  font-size: 20px;
  color: #6b3e1a;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #c4a06a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.section-head::before {
  content: '◆';
  font-size: 9px;
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
  color: #2b1d0e;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ===========================
   Náplň práce
   =========================== */

.duty-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.duty-list li {
  font-size: 15px;
  color: #2b1d0e;
  padding: 7px 0 7px 1.5rem;
  border-bottom: 1px dashed #c4a06a;
  position: relative;
  line-height: 1.5;
}

.duty-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #c8922a;
  font-size: 11px;
  top: 9px;
}

/* ===========================
   Požadavky pro uchazeče
   =========================== */

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.req-item {
  background: #ede0c0;
  border: 1px solid #c4a06a;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13px;
  color: #2b1d0e;
  display: flex;
  align-items: center;
  gap: 7px;
  font-style: italic;
}

.req-dot {
  width: 5px;
  height: 5px;
  background: #6b3e1a;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===========================
   Rozsáhlejší info o zaměstnání
   =========================== */

.scroll-card {
  background: #ede0c0;
  border: 1px solid #c4a06a;
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.scroll-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #3d1f08;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #c4a06a;
  font-size: 13.5px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ilab {
  color: #6b3e1a;
  font-style: italic;
}

.ival {
  font-weight: 600;
  color: #2b1d0e;
  text-align: right;
  font-family: 'Cinzel', serif;
  font-size: 12px;
}

/* ===========================
   Přihláška do zaměstnání
   =========================== */

.pledge-card {
  background: #ede0c0;
  border: 2px solid #6b3e1a;
  border-radius: 4px;
  padding: 1.25rem;
}

.pledge-title {
  font-family:'Cinzel', serif;
  font-size: 1rem;
  color: #3d1f08;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-family: Italic;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #6b3e1a;
  margin-bottom: 3px;
}

.field input,
.field textarea {
  width: 100%;
  background: #f5ead0;
  border: 1px solid #c4a06a;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 14px;
  color: #2b1d0e;
  font-family: 'Crimson Text', serif;
  resize: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #6b3e1a;
}

.field textarea {
  height: 65px;
}

.file-label {
  display: block;
  border: 1px dashed #c4a06a;
  border-radius: 3px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: #6b3e1a;
  font-style: italic;
  background: #f5ead0;
  cursor: pointer;
  transition: background 0.2s;
}

.file-label:hover {
  background: #ede0c0;
}

.file-label.has-file {
  color: #3d1f08;
  font-style: normal;
  border-style: solid;
}

.seal-btn {
  width: 100%;
  background: #3d1f08;
  color: #f5ead0;
  border: 2px solid #c8922a;
  border-radius: 4px;
  padding: 12px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.seal-btn:hover {
  background: #6b3e1a;
}

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

.form-message {
  margin-top: 10px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  text-align: center;
  min-height: 18px;
  color: #3d1f08;
}

.form-message.success {
  color: #3a6b1a;
}

.form-message.error {
  color: #8b1a1a;
}

/* ===========================
   Patička
   =========================== */

.footer {
  background: #000000;
  padding: 1rem 2rem;
  text-align: center;
  color: #c8922a;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* ===========================
   Animace
   =========================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ornamentBreath {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

@keyframes goldFlicker {
  0%,  100% { color: #c8922a; }
  20%        { color: #e0ab3a; }
  40%        { color: #b07820; }
  70%        { color: #d4a84b; }
  85%        { color: #c8922a; }
}

@keyframes rippleOut {
  from { transform: scale(0); opacity: 0.35; }
  to   { transform: scale(2.5); opacity: 0; }
}

.anim-hidden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.ornament-pulse {
  display: inline-block;
  animation: ornamentBreath 3s ease-in-out infinite;
}

.decree-flicker {
  animation: goldFlicker 6s ease-in-out infinite;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.45);
  pointer-events: none;
  animation: rippleOut 0.6s ease-out forwards;
}
