/* Piknik koča — tokens */
:root {
  --spruce: #1f3a2b;      /* text, dark surfaces */
  --spruce-2: #2c4d3a;
  --leaf: #9bc23c;        /* spring beech leaf, nod to the original lime title */
  --leaf-deep: #5f7f1d;   /* leaf for text on light bg (AA) */
  --gravel: #ecede6;      /* page background, from the gravel yard */
  --stone: #dcdfd3;
  --bark: #6b4430;        /* shelter wood */
  --white: #ffffff;
  --ink-soft: #4a5a4f;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4.5rem, 10vw, 8rem);
  --r-sm: 6px;
  --r-lg: 18px;
  --bar-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--gravel);
  color: var(--spruce);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; max-width: 18ch; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section__intro { color: var(--ink-soft); max-width: 52ch; margin-top: 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--leaf); color: var(--spruce); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--leaf { background: var(--leaf); color: var(--spruce); }
.btn--leaf:hover { background: #b2d75a; }
.btn--line { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--spruce); color: var(--white); }
.btn--dark:hover { background: var(--spruce-2); }

/* Top bar — transparent over hero, solid once scrolled */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--spruce); transition: box-shadow .25s; }
.bar__inner { max-width: var(--wrap); height: var(--bar-h); margin-inline: auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.bar__brand { font: 800 1.5rem/1 var(--f-display); letter-spacing: -0.02em; color: var(--leaf); text-decoration: none; opacity: 0; transform: translateY(.4rem); pointer-events: none; transition: opacity .25s, transform .25s; }
.bar__inner > nav { margin-left: auto; }
.bar__brand, .bar__call { white-space: nowrap; flex-shrink: 0; }
.bar__nav { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.bar__nav a, .bar__call { color: var(--white); text-decoration: none; font-weight: 500; }
.bar__nav a:hover { color: var(--leaf); }
.bar__call { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--leaf); color: var(--leaf); font-weight: 600; transition: background-color .15s, color .15s; }
.bar__call:hover { background: var(--leaf); color: var(--spruce); }
.bar.is-solid { box-shadow: 0 6px 20px rgba(14,26,19,.18); }
.bar.show-brand .bar__brand { opacity: 1; transform: none; pointer-events: auto; }

/* Hero — the one bold moment: the hanging banner from the original, reworked */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; overflow: hidden; background: var(--spruce); }
/* The image box is 110% wide and anchored left, so the koča (38–61% of the photo)
   starts at ~42% of the screen; the banner is kept left of that line. */
.hero__img { position: absolute; top: var(--bar-h); left: 0; width: 110%; max-width: none; height: calc(100% - var(--bar-h)); object-fit: cover; object-position: 40% 38%; }
.hero::after { content: ""; position: absolute; inset: var(--bar-h) 0 0; background: linear-gradient(90deg, rgba(20,38,28,.35), rgba(20,38,28,0) 45%); pointer-events: none; }
.hero__banner {
  position: relative; z-index: 1;
  --banner-w: 22rem;
  /* Align with the content column, but never let the right edge pass 39vw (where the koča starts). */
  margin-left: max(var(--gutter), min(calc((100vw - var(--wrap)) / 2 + var(--gutter)), calc(39vw - var(--banner-w))));
  width: min(var(--banner-w), calc(100% - 2 * var(--gutter)));
  background: var(--spruce); color: var(--white);
  padding: calc(var(--bar-h) + clamp(2rem, 6vh, 4rem)) 2rem 5rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 2.75rem), 0 100%);
  transform-origin: top center;
  animation: unroll .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__title { font-size: clamp(3.5rem, 5.2vw, 4.75rem); font-weight: 800; color: var(--leaf); letter-spacing: -0.035em; line-height: .9; margin-bottom: 1.5rem; }
.hero__lead { font-size: 1.1rem; line-height: 1.5; color: rgba(255,255,255,.86); max-width: 26ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@keyframes unroll { from { clip-path: polygon(0 0, 100% 0, 100% 0, 50% 0, 0 0); } }
@media (prefers-reduced-motion: reduce) { .hero__banner { animation: none; } }

/* Prostor */
.prostor__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.prostor__text h2 { margin-bottom: 1.75rem; }
.prostor__text p { max-width: 54ch; color: var(--ink-soft); font-size: 1.125rem; }
.fact { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--stone); }
.fact__num { font: 800 4.5rem/1 var(--f-display); color: var(--bark); letter-spacing: -0.04em; }
.fact__label { font-weight: 600; font-size: 1.125rem; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.amenities li { position: relative; padding-left: 1.4rem; font-weight: 500; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50% 0; background: var(--leaf); }
.prostor__photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); margin-bottom: 0; }
.prostor__photos img { width: 100%; height: clamp(16rem, 32vw, 26rem); object-fit: cover; border-radius: var(--r-lg); background: var(--stone); }

/* Cenik */
.cenik { background: var(--white); }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.pkg { border: 1px solid var(--stone); border-radius: var(--r-lg); padding: 2rem; }
.pkg--koca { background: var(--spruce); color: var(--white); border-color: var(--spruce); }
.pkg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.pkg__price { font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--f-display); letter-spacing: -0.03em; margin: 0; white-space: nowrap; }
.pkg--koca .pkg__price { color: var(--leaf); }
.pkg__desc { color: var(--ink-soft); margin-bottom: 1.5rem; }
.pkg--koca .pkg__desc { color: rgba(255,255,255,.75); }
.pkg__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.pkg--koca .pkg__list { border-color: rgba(255,255,255,.15); }
.pkg__list li { padding: .7rem 0; border-bottom: 1px solid var(--stone); }
.pkg--koca .pkg__list li { border-color: rgba(255,255,255,.15); }
.pkg__list li:last-child { border-bottom: 0; }

.cleaning { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--stone); }
.cleaning__intro p, .cleaning__opt p:last-child { color: var(--ink-soft); margin: .5rem 0 0; }
.cleaning__name { font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding-bottom: .5rem; border-bottom: 2px solid var(--leaf); }
.cleaning__name span { font-family: var(--f-display); font-weight: 700; color: var(--leaf-deep); }

/* Galerija */
.gallery { list-style: none; margin: 3rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: .75rem; }
.gallery li:nth-child(10n+1), .gallery li:nth-child(10n+8) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.gallery li { position: relative; }
.gallery button { all: unset; position: relative; display: block; width: 100%; aspect-ratio: 1; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; background: var(--stone); }
/* Big tiles fill their 2×2 grid area; the photo never sets the size, so portrait photos can't stretch a row */
.gallery li:nth-child(10n+1) button, .gallery li:nth-child(10n+8) button { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; }
.gallery button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: 0; }
.gallery img.is-loaded { opacity: 1; }
.gallery button:hover img { transform: scale(1.04); }
.gallery__more[hidden] { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(14,26,19,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 9rem); max-height: calc(100vh - 6rem); object-fit: contain; border-radius: var(--r-sm); }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer; transition: background-color .15s, color .15s; }
.lightbox__btn svg { display: block; }
.lightbox__btn:hover { background: var(--leaf); color: var(--spruce); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__count { position: fixed; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); margin: 0; font-size: .95rem; }

/* Kontakt */
.kontakt { background: var(--spruce); color: var(--white); }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.kontakt h2 { color: var(--leaf); margin-bottom: 1.25rem; }
.kontakt__text > p { color: rgba(255,255,255,.78); max-width: 40ch; }
.contact { margin: 2.5rem 0; display: grid; gap: 1.25rem; }
.contact dt { font-size: .95rem; color: rgba(255,255,255,.6); }
.contact dd { margin: 0; font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--f-display); }
.contact a { text-decoration: none; }
.contact .contact__addr { font: 500 1.125rem/1.45 var(--f-body); }
.contact a:hover { color: var(--leaf); }
.maplink { color: var(--leaf); font-weight: 600; text-underline-offset: .25em; }
.kontakt__map { min-height: 22rem; border-radius: var(--r-lg); overflow: hidden; background: var(--spruce-2); }
.kontakt__map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; filter: saturate(.75); }

.footer { background: #172c20; color: rgba(255,255,255,.6); font-size: .95rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--leaf); }

/* Responsive */
@media (max-width: 860px) {
  .prostor__grid, .kontakt__grid, .packages { grid-template-columns: 1fr; }
  .cleaning { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .bar__nav { display: none; }
  .bar__call { margin-left: auto; }

}
/* Phones, tablets and portrait screens: photo fills the screen, banner sits at the bottom */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .bar__brand { opacity: 1; transform: none; pointer-events: auto; }
  .hero { min-height: max(100svh, 46rem); flex-direction: column; justify-content: flex-end; align-items: stretch; padding-top: var(--bar-h); }
  .hero::after { display: none; }
  .hero__img { width: 100%; object-position: 50% 40%; }
  .hero__banner { margin: 0 var(--gutter) 1.5rem; width: auto; max-width: 34rem; padding: 1.75rem 1.75rem 3.75rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 2rem), 0 100%); }
  .hero__title { font-size: 3.5rem; margin-bottom: .9rem; }
  .hero__title br { display: none; }
  .hero__lead { font-size: 1.05rem; margin-bottom: 1.4rem; max-width: 32ch; }
}
@media (max-width: 560px) {
  .lightbox img { max-width: calc(100vw - 1rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: .5rem; translate: none; }
  :root { --bar-h: 4rem; }
  .hero { min-height: max(100svh, 40rem); }
  .hero__banner { margin-bottom: 1rem; padding: 1.5rem 1.4rem 3.5rem; }
  .hero__title { font-size: 2.75rem; margin-bottom: .75rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.2rem; }
  .hero__actions { gap: .5rem; }
  .hero__actions .btn { min-height: 2.75rem; padding: 0 1.05rem; font-size: .95rem; }
  .bar__call { padding: .45rem .9rem; }
  .prostor__photos { grid-template-columns: 1fr; }
  .prostor__photos img { height: 15rem; }
  .pkg { padding: 1.5rem; }
  .amenities { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
}

@media (max-width: 360px) {
  .bar__brand { font-size: 1.25rem; }
  .bar__call { font-size: .9rem; padding: .4rem .75rem; }
}
