/* EKO PALOUČEK — design systém
   Přírodní zelená + teplý oranžový akcent, systémová písma, mobile-first. */

:root {
  --c-green-900: #16341f;
  --c-green-700: #2d5a3d;
  --c-green-600: #3c7351;
  --c-green-100: #e7f0e8;
  --c-orange-600: #e07b12;
  --c-orange-700: #a85a00;
  --c-bg: #faf8f2;
  --c-surface: #ffffff;
  --c-text: #26302a;
  --c-text-mut: #55665b;
  --c-on-dark: #f2f6f0;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.25rem;
  --fs-3: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem);
  --fs-4: clamp(1.8rem, 1.3rem + 2.8vw, 2.8rem);

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: 1rem;
  --sp-4: 1.5rem; --sp-5: 2.5rem; --sp-6: 4rem;
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow-1: 0 1px 3px rgb(22 52 31 / .10);
  --shadow-2: 0 6px 24px rgb(22 52 31 / .12);
  --maxw: 68rem;
}

/* ---------- reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  line-height: 1.2;
  color: var(--c-green-700);
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }

p { margin: 0 0 var(--sp-3); }

a { color: var(--c-green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-orange-700); }

:focus-visible { outline: 3px solid var(--c-orange-600); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-3); }

.skip {
  position: absolute;
  left: var(--sp-3);
  top: -3.5rem;
  z-index: 100;
  background: var(--c-green-900);
  color: var(--c-on-dark);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top .15s ease;
}
.skip:focus { top: 0; }

/* ---------- header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  min-height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--c-green-900);
  font-weight: 700;
  font-size: var(--fs-2);
  letter-spacing: .02em;
  padding-block: var(--sp-2);
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--c-text-mut);
  letter-spacing: .04em;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--c-green-100);
  background: var(--c-surface);
  color: var(--c-green-900);
  font: inherit;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.site-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  text-decoration: none;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius-s);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--c-green-700); background: var(--c-green-100); }
.site-nav a[aria-current="page"] {
  color: var(--c-green-900);
  border-bottom-color: var(--c-orange-600);
}

@media (max-width: 719.98px) {
  html:not(.no-js) .nav-toggle { display: block; }
  html:not(.no-js) .site-nav { display: none; width: 100%; }
  html:not(.no-js) .site-nav.open { display: block; padding-bottom: var(--sp-2); }
  html:not(.no-js) .site-nav ul { flex-direction: column; }
  html:not(.no-js) .site-nav a { padding-block: var(--sp-3); border-bottom: none; border-left: 3px solid transparent; }
  html:not(.no-js) .site-nav a[aria-current="page"] { border-left-color: var(--c-orange-600); background: var(--c-green-100); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  color: var(--c-on-dark);
  background: var(--c-green-900);
}
.hero picture, .hero img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}
.hero-inner {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--sp-5);
  background: linear-gradient(to top, rgb(13 33 20 / .82) 0%, rgb(13 33 20 / .35) 55%, rgb(13 33 20 / .05) 100%);
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-1);
  text-shadow: 0 2px 8px rgb(0 0 0 / .35);
}
.hero .tagline {
  font-size: var(--fs-2);
  max-width: 34rem;
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 6px rgb(0 0 0 / .45);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--c-orange-600); color: var(--c-green-900); }
.btn-primary:hover { background: #f08d2a; color: var(--c-green-900); }
.btn-ghost { border-color: var(--c-on-dark); color: var(--c-on-dark); }
.btn-ghost:hover { background: rgb(255 255 255 / .14); color: #fff; }
.btn-green { background: var(--c-green-700); color: var(--c-on-dark); }
.btn-green:hover { background: var(--c-green-600); color: #fff; }

/* ---------- sections & components ---------- */

.section { padding-block: var(--sp-6); }
.section-tint { background: var(--c-green-100); }
.section > .wrap > h2:first-child { margin-bottom: var(--sp-4); }

.lead { font-size: var(--fs-2); color: var(--c-text-mut); max-width: 46rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--c-surface);
  border-radius: var(--radius-m);
  border-top: 4px solid var(--c-orange-600);
  box-shadow: var(--shadow-1);
  padding: var(--sp-4);
}
.card svg { width: 2.4rem; height: 2.4rem; color: var(--c-green-700); margin-bottom: var(--sp-3); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--c-text-mut); margin-bottom: var(--sp-2); }
.card a { font-weight: 600; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li { display: flex; align-items: baseline; gap: var(--sp-2); }
.facts strong { font-size: var(--fs-3); color: var(--c-green-700); font-variant-numeric: tabular-nums; }

/* střídavé řádky obrázek + text */
.media-row {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-5);
}
.media-row img { border-radius: var(--radius-m); box-shadow: var(--shadow-2); width: 100%; }
@media (min-width: 760px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row.flip > :first-child { order: 2; }
}

figure { margin: 0; }
figcaption { font-size: var(--fs-0); color: var(--c-text-mut); padding-top: var(--sp-2); }

/* ---------- ceník ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--sp-4);
}
.table-wrap { overflow-x: auto; }
.price-grid table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.price-grid caption {
  background: var(--c-green-700);
  color: var(--c-on-dark);
  font-weight: 700;
  padding: var(--sp-3);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}
.price-grid caption small { display: block; font-weight: 400; opacity: .85; }
.price-grid td, .price-grid th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-top: 1px solid var(--c-green-100);
}
.price-grid td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--c-green-900);
}
.note { font-size: var(--fs-0); color: var(--c-text-mut); }

/* ---------- galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}
.gallery a { display: block; border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow-1); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }

dialog.lightbox {
  border: none;
  border-radius: var(--radius-m);
  padding: var(--sp-2);
  background: var(--c-green-900);
  max-width: min(64rem, 94vw);
}
dialog.lightbox::backdrop { background: rgb(13 33 20 / .85); }
dialog.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius-s); }
dialog.lightbox button {
  display: block;
  margin: var(--sp-2) auto 0;
  border: 1px solid var(--c-on-dark);
  background: none;
  color: var(--c-on-dark);
  font: inherit;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-s);
  cursor: pointer;
}
dialog.lightbox button:hover { background: rgb(255 255 255 / .14); }

/* ---------- kontakt ---------- */

.contact-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}
@media (min-width: 760px) { .contact-grid { grid-template-columns: 2fr 3fr; } }

.contact-card {
  background: var(--c-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: var(--sp-4);
}
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { padding-block: var(--sp-2); display: flex; gap: var(--sp-2); align-items: baseline; }
.contact-card li + li { border-top: 1px solid var(--c-green-100); }
.contact-card .label { color: var(--c-text-mut); font-size: var(--fs-0); min-width: 6rem; flex: none; }

.map-box iframe {
  width: 100%;
  height: 24rem;
  border: 0;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  display: block;
}
.map-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-2); font-size: var(--fs-0); }

/* ---------- CTA pás ---------- */

.cta-band {
  background: var(--c-green-700);
  color: var(--c-on-dark);
  border-radius: var(--radius-m);
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.cta-band h2, .cta-band p { color: inherit; margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--c-green-900);
  color: var(--c-on-dark);
  margin-top: var(--sp-6);
}
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: #fff; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--sp-4);
  padding-block: var(--sp-5);
}
.site-footer h2 {
  color: var(--c-on-dark);
  font-size: var(--fs-1);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--sp-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: var(--sp-1); }
.site-footer address { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / .15);
  padding-block: var(--sp-3);
  font-size: var(--fs-0);
  text-align: center;
  color: rgb(242 246 240 / .75);
}

/* ---------- 404 ---------- */

.error-page { text-align: center; padding-block: var(--sp-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
