/* ============================================================
   DC Ježko — redesign draft
   Palette: soft sand & sage, warm clay accent
   ============================================================ */

:root {
  --sage: #7c9473;
  --sage-dark: #4f6a53;
  --sage-tint: #e7ede3;
  --sand: #ecdfc4;
  --sand-tint: #f5ecd9;
  --cream: #fbf6ec;
  --clay: #c97a46;
  --clay-dark: #9c5a2e;
  --ink: #3a3226;
  --ink-soft: #6b6154;
  --white: #ffffff;

  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 30px -12px rgba(58, 50, 38, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset anchor scrolling so the sticky header doesn't cover the section title */
#domov, #o-nas, #aktivity, #galeria, #kontakt { scroll-margin-top: 90px; }
@media (max-width: 600px) {
  #domov, #o-nas, #aktivity, #galeria, #kontakt { scroll-margin-top: 80px; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--clay);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-burger:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58, 50, 38, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sage-dark);
}

.brand__mark {
  display: flex;
  align-items: center;
}
.brand__mark img {
  height: 46px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}
.site-nav a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sage-dark);
  border-color: var(--sage);
}
.site-nav__cta {
  background: var(--clay);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.site-nav__cta:hover { background: var(--clay-dark); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn--ghost {
  border: 2px solid var(--sage);
  color: var(--sage-dark);
}
.btn--ghost:hover { background: var(--sage-tint); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
}
.hero__blob { position: absolute; width: 420px; opacity: 0.5; z-index: 0; }
.hero__blob--1 { top: -140px; right: -120px; }
.hero__blob--2 { bottom: -160px; left: -160px; width: 360px; opacity: 0.4; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-weight: 700;
  color: var(--clay-dark);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 18ch; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero__art { width: min(100%, 340px); margin: 0 auto; }
.hero__logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--sand);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  padding: 12%;
}
.hero__logo-badge img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(58, 50, 38, 0.18));
}

/* ===== Motion: hero entrance ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__copy > * {
  opacity: 0;
  animation: fade-in-up 0.7s ease forwards;
}
.hero__copy .eyebrow { animation-delay: 0.05s; }
.hero__copy h1 { animation-delay: 0.15s; }
.hero__copy .lede { animation-delay: 0.25s; }
.hero__copy .hero__actions { animation-delay: 0.35s; }

.hero__art {
  opacity: 0;
  animation: fade-in-up 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__logo-badge { animation: float 5s ease-in-out infinite; }

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

.offer-grid .offer-card:nth-child(1) { transition-delay: 0s; }
.offer-grid .offer-card:nth-child(2) { transition-delay: 0.06s; }
.offer-grid .offer-card:nth-child(3) { transition-delay: 0.12s; }
.offer-grid .offer-card:nth-child(4) { transition-delay: 0.18s; }

/* Icon draw-in: stroked line icons draw themselves, filled accents pop in after */
.icon-draw__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease;
}
.reveal.is-visible .icon-draw__line { stroke-dashoffset: 0; }

.icon-draw__fill {
  opacity: 0;
  transform: scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: 0.5s;
}
.reveal.is-visible .icon-draw__fill { opacity: 1; transform: scale(1); }

/* Staggered list reveal, inside any revealed card/block */
.reveal li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible li { opacity: 1; transform: translateY(0); }
.reveal.is-visible li:nth-child(1) { transition-delay: 0.15s; }
.reveal.is-visible li:nth-child(2) { transition-delay: 0.22s; }
.reveal.is-visible li:nth-child(3) { transition-delay: 0.29s; }
.reveal.is-visible li:nth-child(4) { transition-delay: 0.36s; }
.reveal.is-visible li:nth-child(5) { transition-delay: 0.43s; }
.reveal.is-visible li:nth-child(6) { transition-delay: 0.5s; }
.reveal.is-visible li:nth-child(7) { transition-delay: 0.57s; }
.reveal.is-visible li:nth-child(8) { transition-delay: 0.64s; }
.reveal.is-visible li:nth-child(9) { transition-delay: 0.71s; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .hero__art,
  .reveal,
  .reveal li,
  .icon-draw__line,
  .icon-draw__fill {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    animation: none;
    transition: none;
  }
  .hero__logo-badge { animation: none; }
  .hero__blob { transform: none !important; }
  .lightbox { transition: none; }
  .gallery__item img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Section shared ===== */
section { padding: 80px 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-lede { color: var(--ink-soft); max-width: 52ch; margin-bottom: 40px; }

/* ===== About / Offer grid ===== */
.about { background: var(--white); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.offer-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.offer-card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
.offer-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.offer-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.schedule {
  background: var(--sage-tint);
  border-radius: var(--radius-lg);
  padding: 40px clamp(24px, 5vw, 48px);
}
.schedule__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.schedule__icon { width: 44px; height: 44px; flex-shrink: 0; }
.schedule__head h2 { font-size: 1.6rem; color: var(--sage-dark); margin-bottom: 4px; }
.schedule__lede { color: var(--ink-soft); margin: 0; }

.schedule__list { display: flex; flex-direction: column; }
.schedule__list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58, 50, 38, 0.12);
}
.schedule__list li:last-child { border-bottom: none; }
.schedule__time {
  flex: 0 0 110px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--clay-dark);
}
.schedule__desc { color: var(--ink-soft); }

.catering {
  background: var(--sage-tint);
  border-radius: var(--radius-lg);
  padding: 40px clamp(24px, 5vw, 48px);
  margin-top: 24px;
}
.catering__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.catering__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(58, 50, 38, 0.18));
}
.catering__head h2 { font-size: 1.6rem; color: var(--sage-dark); margin: 0; }
.catering p { color: var(--ink-soft); }
.catering p:last-child { margin-bottom: 0; }
.catering a { color: var(--clay-dark); font-weight: 700; text-decoration: underline; }
.catering a:hover { color: var(--clay); }

.catering .catering__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--clay-dark);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}
.catering__cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.catering__cta:hover { background: var(--sand-tint); transform: translateY(-2px); }

/* ===== Activities ===== */
.activities { background: var(--sand-tint); position: relative; overflow: hidden; }

.activities__toy {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(58, 50, 38, 0.15));
}
.activities__toy--ball {
  width: 160px;
  top: 24px;
  right: 24px;
  animation: float 5s ease-in-out infinite;
}
.activities__toy--cube {
  width: 200px;
  bottom: -20px;
  left: -15px;
  animation: float 6.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.activities .wrap { position: relative; z-index: 1; }

.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .activities__toy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .activities__toy { animation: none; }
}
.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--sage);
}
.activity-card h3 { color: var(--sage-dark); font-size: 1.3rem; }
.activity-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 50, 38, 0.08);
  color: var(--ink-soft);
}
.activity-card li:last-child { border-bottom: none; }
.activity-card__partner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.partner-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 10px;
  padding: 6px 12px 6px 12px;
}
.partner-badge__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.partner-logo { height: 30px; width: auto; flex-shrink: 0; border-radius: 4px; }

/* ===== Gallery ===== */
.gallery { background: var(--white); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--sand);
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  background: var(--cream);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

.gallery__grid .gallery__item:nth-child(1) { transition-delay: 0s; }
.gallery__grid .gallery__item:nth-child(2) { transition-delay: 0.06s; }
.gallery__grid .gallery__item:nth-child(3) { transition-delay: 0.12s; }
.gallery__grid .gallery__item:nth-child(4) { transition-delay: 0.18s; }
.gallery__grid .gallery__item:nth-child(5) { transition-delay: 0.24s; }
.gallery__grid .gallery__item:nth-child(6) { transition-delay: 0.3s; }
.gallery__grid .gallery__item:nth-child(7) { transition-delay: 0.36s; }
.gallery__grid .gallery__item:nth-child(8) { transition-delay: 0.42s; }
.gallery__grid .gallery__item:nth-child(9) { transition-delay: 0.48s; }
.gallery__grid .gallery__item:nth-child(10) { transition-delay: 0.54s; }

/* Mobile default: show first 6 (base items, no tier class) */
.gallery__grid .gallery__item--tier2,
.gallery__grid .gallery__item--extra { display: none; }

/* Desktop default: also show the next 6 (tier2), for 12 total */
@media (min-width: 601px) {
  .gallery__grid .gallery__item--tier2 { display: block; }
}

/* Expanded: show everything, on any screen size */
.gallery__grid.is-expanded .gallery__item--tier2,
.gallery__grid.is-expanded .gallery__item--extra { display: block; }

.gallery__more {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 26, 20, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease, visibility 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(30, 26, 20, 0.92);
}
.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

@media (max-width: 600px) {
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ===== Contact ===== */
.contact { background: var(--sage-dark); color: var(--white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.section-title--onlight { color: var(--white); }
.section-lede--onlight { color: rgba(255,255,255,0.78); }

.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-list a { transition: opacity 0.2s ease; }
.contact-list a:hover { opacity: 0.8; text-decoration: underline; }

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.contact-map-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-map-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

.contact-meta { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.contact__art { width: min(100%, 260px); margin: 0 auto; }

/* ===== Footer ===== */
.site-footer { background: var(--cream); border-top: 1px solid rgba(58,50,38,0.08); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__inner a:hover { color: var(--sage-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; width: min(70%, 260px); }

  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; text-align: center; }
  .contact-list { align-items: center; }
  .contact__art { display: none; }
}

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .nav-burger span {
    width: 22px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    border-bottom: 1px solid rgba(58,50,38,0.08);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  }
  .site-nav a { width: 100%; padding: 12px 0; }
  .site-nav__cta { margin-top: 6px; display: inline-block; }

  .nav-toggle:checked ~ .site-nav {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  @media (prefers-reduced-motion: reduce) {
    .site-nav { transition: max-height 0.01s, opacity 0.01s; transform: none; }
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero__logo-badge { animation: none; }
  .activity-card { padding: 28px 22px; }
  .activity-card__partner { flex-direction: column; align-items: flex-start; }
  .schedule { padding: 30px 20px; border-radius: var(--radius-md); }
  .schedule__time { flex-basis: 88px; font-size: 0.92rem; }
  .catering { padding: 30px 20px; border-radius: var(--radius-md); }
  .offer-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-list li { font-size: 0.95rem; }

  .site-header__inner { padding-top: 16px; padding-bottom: 16px; }
  .brand__mark img { height: 36px; }

  /* Not enough width for copyright + "Späť nahor" side by side — drop the link rather than wrap it awkwardly */
  .site-footer__inner a { display: none; }
  .site-footer__inner { justify-content: center; }
}
