/* ── Reset & custom properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #f2efe9;
  --cream-mid:  #e0dbd2;
  --dark:       #1c1a17;
  --gold:       #c9a96e;
  --muted:      #6a6256;
  --font-sans:  system-ui, -apple-system, sans-serif;
  --bar-top:    62px;   /* fixed logo bar height */
  --bar-bottom: 0px;    /* mobile strip height (0 on desktop) */
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
  scroll-padding-top: var(--bar-top);
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  height: 100%;
  padding-top: var(--bar-top);
}

/* ── Snap sections ── */
.section {
  scroll-snap-align: start;
  height: calc(100vh - var(--bar-top) - var(--bar-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Logo bar ── */
.logo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  pointer-events: none;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-mid);
}

.logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--dark);
}

.logo-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: all;
}

.logo-email,
.logo-phone {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}
.logo-phone { font-weight: 600; }
.logo-email:hover,
.logo-phone:hover { color: var(--gold); }

.logo-cta {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}
.logo-cta:hover {
  background: var(--gold);
  color: var(--cream);
}

/* ── Hero ── */
.section--hero {
  background: var(--dark);
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: 14px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
}

.hero__sub {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.hero__line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

.hero__cta {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 14px 36px;
  margin-bottom: 48px;
  transition: background 0.25s, color 0.25s;
}
.hero__cta:hover {
  background: var(--gold);
  color: var(--dark);
}

.hero__location {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7a7060;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6a6256;
}
.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, #4a4640, transparent);
}

@keyframes scrollBounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}
.hero__scroll { animation: scrollBounce 2.4s ease-in-out infinite; }

/* ── Section header ── */
.section__header {
  padding: 40px 56px 32px;
  flex: 1;
  border-bottom: 1px solid var(--cream-mid);
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 0;
}

.section__num {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-right: 20px;
  padding-top: 8px;
  grid-column: 1;
  grid-row: 1;
  align-self: baseline;
}

.section__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.1;
  grid-column: 2;
  grid-row: 1;
}

.section__desc {
  font-size: 14px;
  color: #4a4238;
  line-height: 1.85;
  max-width: 72ch;
  grid-column: 1 / 3;
  margin-top: 22px;
}

.section__desc p + p {
  margin-top: 12px;
}

/* ── Photo grid: 4 fotky v řadě ── */
.photo-grid {
  flex: 0 0 38vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 28px;
  background: var(--cream-mid);
  overflow: hidden;
}

.photo--main {
  grid-row: unset;
}

.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cec7b8;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  color: inherit;
}
.photo:hover { opacity: 0.88; }

.photo__label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a8a090;
  user-select: none;
  pointer-events: none;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter 0.5s ease;
}

.photo::after {
  content: '⊕';
  position: absolute;
  top: 10px; right: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.photo:hover::after { opacity: 1; }

/* Photo placeholder tones */
.photo-grid .photo:nth-child(1) { background: #c8c1b0; }
.photo-grid .photo:nth-child(2) { background: #d4cec0; }
.photo-grid .photo:nth-child(3) { background: #bfb8a8; }
.photo-grid .photo:nth-child(4) { background: #cac3b4; }

/* ── Dark section (sklad) ── */
.section--dark { background: var(--dark); }

.section--dark .section__header {
  border-bottom-color: #2a2620;
  background: var(--dark);
}
.section--dark .section__title { color: var(--cream); }
.section--dark .section__desc  { color: #c4b8a4; }
.section--dark .section__header::after { background: var(--gold); }

.photo-grid--dark { background: var(--dark); }

.photo--dark { background: #28241f !important; }
.photo--dark .photo__label { color: #4a4640; }

/* Sklad "všechny fotky" tile */
.photo--all {
  background: var(--dark) !important;
  border: 1px solid #2a2620;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.photo--all:hover { background: #252118 !important; opacity: 1; }
.photo--all::after { display: none; }

.photo-all__count {
  font-size: 34px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 2px;
  line-height: 1;
}
.photo-all__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Contact section ── */
.section--contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  flex-direction: unset;
  overflow: hidden;
}

.contact__map {
  overflow: hidden;
  background: #28241f;
  order: 2;
}
.contact__info {
  order: 1;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact__info {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 64px;
}

.contact__logo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.3;
  margin-bottom: 36px;
}

.contact__line {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 40px;
}

.contact__block {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.contact__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9080;
  margin-bottom: 8px;
}

.contact__value {
  font-size: 17px;
  color: var(--cream);
  line-height: 1.7;
  font-style: normal;
}

.contact__email,
.contact__phone {
  font-size: 20px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.contact__email:hover,
.contact__phone:hover { opacity: 0.8; }

.contact__note {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9a9080;
  margin-top: 40px;
}

/* ── Dot navigation (desktop) ── */
.dot-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 200;
}

.dot-nav a {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-mid);
  border: 1px solid #a09880;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  text-decoration: none;
  outline: none;
}

.dot-nav a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.5);
}

.dot-nav a::before {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  background: var(--cream);
  padding: 3px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.dot-nav a:hover::before,
.dot-nav a:focus-visible::before { opacity: 1; }

/* ── Mobile strip navigation ── */
.mobile-strip {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--cream-mid);
  padding: 8px 20px 14px;
  z-index: 200;
}

.strip-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.strip-counter { color: var(--muted); }

.strip-bars {
  display: flex;
  gap: 4px;
}
.strip-bar {
  flex: 1;
  height: 2px;
  background: var(--cream-mid);
  border-radius: 1px;
  transition: background 0.3s;
}
.strip-bar.is-active { background: var(--gold); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zlatá linka která se roztáhne při reveal */
.section__header {
  position: relative;
}
.section__header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px; left: 56px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}
.section__header.is-visible::after { width: clamp(80px, 15vw, 160px); }

/* Hero logo — jemný fade-in při načtení */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__logo    { animation: heroFadeIn 0.9s ease 0.1s both; }
.hero__sub     { animation: heroFadeIn 0.9s ease 0.3s both; }
.hero__line    { animation: heroFadeIn 0.6s ease 0.5s both; }
.hero__cta     { animation: heroFadeIn 0.9s ease 0.65s both; }
.hero__location { animation: heroFadeIn 0.9s ease 0.8s both; }


/* ── Split sections (text | 2×2 photos, alternating) ── */
.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.section--split .section__header {
  flex: unset;
  border-bottom: none;
  border-right: 1px solid var(--cream-mid);
  padding: 40px 64px 48px;
  max-width: none;
}

.section--split .section__header::after {
  bottom: 48px;
  left: 64px;
}

.section--split .photo-grid {
  flex: unset;
  margin-bottom: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.section--split--reversed .section__header {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--cream-mid);
}
.section--split--reversed .photo-grid { order: 1; }

.section--dark.section--split .section__header {
  border-right-color: #2a2620;
}
.section--dark.section--split--reversed .section__header {
  border-left-color: #2a2620;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --bar-top:    50px;
    --bar-bottom: 56px;
  }

  .dot-nav { display: none; }
  .mobile-strip { display: block; }
  body { padding-bottom: var(--bar-bottom); }

  .section__header {
    padding: 24px 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
  }
  .section__title {
    letter-spacing: 2px;
    font-size: clamp(22px, 5vw, 28px);
  }
  .section__desc {
    margin-left: 0;
    max-width: 100%;
    margin-top: 10px;
    padding-top: 0;
  }
  .photo-grid {
    flex: 0 0 36vh;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    margin: 0 16px 16px;
  }

  .section--contact {
    grid-template-columns: 1fr;
    grid-template-rows: 32vh auto;
    /* let the contact section grow to fit its content instead of
       clipping the last address block into an internal scroll */
    height: auto;
    min-height: calc(100dvh - var(--bar-top) - var(--bar-bottom));
    overflow: visible;
  }
  .contact__info {
    padding: 24px 24px 28px;
    overflow-y: visible;
  }
  .contact__block { gap: 22px; }
  .contact__logo { margin-bottom: 20px; }
  .contact__line { margin-bottom: 24px; }
  .contact__email,
  .contact__phone { font-size: 18px; }
  .contact__value { font-size: 16px; line-height: 1.5; }
  .contact__note { margin-top: 24px; }

  .logo-bar { padding: 14px 20px; }
  .logo-bar-right { gap: 12px; }
  .logo-email { display: none; }
  .logo-phone { font-size: 11px; }

  .hero__logo { letter-spacing: 8px; }
  .hero__cta  { letter-spacing: 4px; }

  .section--split {
    display: flex;
    flex-direction: column;
    /* height comes from base .section calc */
  }
  .section--split .section__header,
  .section--split--reversed .section__header {
    order: 1;
    flex: 1;
    min-height: 0; /* umožní overflow-y: auto fungovat ve flexboxu */
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--cream-mid);
    overflow-y: auto;
    padding: 24px 22px 20px;
    align-content: start;
  }
  .section--dark.section--split .section__header,
  .section--dark.section--split--reversed .section__header {
    border-bottom-color: #2a2620;
  }
  .section--split .photo-grid,
  .section--split--reversed .photo-grid {
    order: 2;
    flex: 0 0 38vh;
    margin: 0 16px 16px;
  }

  /* reset contact order on mobile — map stays on top */
  .contact__map  { order: 1; }
  .contact__info { order: 2; }
}
