/* =========================
   ZÁKLAD
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  color: #2b2b2b;
  background-color: #f4f1ea;
  animation: pageFade 0.8s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   TYPOGRAFIE
========================= */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.1rem; }

.small { font-size: 0.95rem; opacity: 0.8; }
.note  { font-size: 0.9rem;  opacity: 0.7; }

/* =========================
   ODKAZY
========================= */

a {
  color: #5b6f4a;
  text-decoration: none;
  border-bottom: 1px solid rgba(91,111,74,0.4);
  transition: all 0.3s ease;
}

a:hover {
  color: #3f4f34;
  border-bottom-color: #3f4f34;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  line-height: 0;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(95%) contrast(95%);
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f5f4ef;
  text-align: center;
  padding: 2rem;
  line-height: 1.3;
}

.hero-text h1 {
  font-size: 3.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.4;
}
/* =========================
   SCROLL ŠIPKA – FUNKČNÍ
========================= */

.scroll-indicator {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* samotná šipka */
.scroll-indicator::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid #2b2b2b;   /* tmavá */
  border-bottom: 3px solid #2b2b2b;
  transform: rotate(-45deg);
  animation: arrowMove 2s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
}

@keyframes arrowMove {
  0%,100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(8px); }
}

.scroll-indicator:hover {
  opacity: 1;
}

/* =========================
   SEKCE
========================= */

.section {
  padding: 2.5rem 1.5rem;
}

.section:first-of-type {
  padding-top: 3rem;
}

.content {
  max-width: 900px;
  margin: auto;
}

.narrow {
  max-width: 760px; /* mírně rozšířeno kvůli galerii */
}

/* =========================
   TLAČÍTKA
========================= */

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  border: 1px solid #5b6f4a;
  color: #5b6f4a;
  background: transparent;
  transition: all 0.3s ease;
}

.button:hover {
  background: #5b6f4a;
  color: #f5f4ef;
}

/* =========================
   KARTY
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: auto;
}

.card {
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 0.7rem;
  cursor: zoom-in;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

/* =========================
   DETAIL GALERIE – OPRAVA
========================= */

/* pevné 3 sloupce */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.detail-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.detail-gallery img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* pokud jsou jen 2 obrázky */
.detail-gallery img:only-child {
  grid-column: span 3;
}

.detail-gallery img:nth-child(2):last-child {
  grid-column: span 1;
}

/* mobil */
@media (max-width: 768px) {
  .detail-gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================
   DENÍK
========================= */

.denik-block {
  margin: 1.6rem 0;
}

.denik-block img,
.denik-block video {
  width: 100%;
  display: block;
}

.denik-block.text p:first-of-type::first-letter {
  float: left;
  font-size: 2.6em;
  line-height: 0.5;
  margin-right: 6px;
  margin-top: 4px;
  color: #5a4a32;
}

#denik-list {
  position: relative;
  margin-left: 16px;
}

#denik-list::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.1);
}

.entry {
  position: relative;
  margin-bottom: 1.2rem;
  padding-left: 6px;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.entry::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
}

.entry .date {
  display: block;
  font-size: 1rem;
  opacity: 0.55;
  margin-bottom: 0.2rem;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.4s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 1.8rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  opacity: 0.55;
}

/* =========================
   DENÍK – NAVIGACE
========================= */

.denik-nav {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 1rem;
}

.denik-nav a {
  border-bottom: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.denik-nav a:hover {
  opacity: 1;
}

.denik-nav a:first-child {
  justify-self: start;
}

.denik-nav a:nth-child(2) {
  justify-self: center;
}

.denik-nav a:last-child {
  justify-self: end;
}