*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Belt-and-braces against horizontal scroll on any viewport — nothing
   on this site legitimately needs horizontal overflow, so clip it
   defensively rather than rely on every component getting it right. */
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--brand-dark);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

::selection { background: var(--wood); color: var(--white); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-sm);
  top: -60px;
  background: var(--brand-dark);
  color: var(--cream);
  padding: 0.7em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-sm); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--sp-xl);
}
.section--tight { padding-block: var(--sp-lg); }
/* The section right after a full-bleed hero doesn't need the usual
   generous top breathing room — the hero itself already ends with its
   own soft fade, so stacking a full --sp-xl on top of that read as a
   few hundred empty pixels before any content. Bottom padding stays
   normal; only the top is pulled in. */
.section--hero-adjacent { padding-block-start: clamp(80px, 8vw, 120px); }
.section--alt { background: var(--surface-alt); }
.section--dark {
  background: var(--brand-dark);
  color: var(--cream-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--wood-light); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-md);
}
.section-head h2 { margin-top: 0.4em; }
.section-head p { margin-top: 0.9em; color: var(--text-muted); font-size: var(--fs-md); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--wood);
  color: var(--cream);
  box-shadow: 0 3px 10px rgba(58, 40, 20, 0.28);
}
.btn--primary:hover {
  background: var(--wood-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(58, 40, 20, 0.34);
}
.btn--ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--dark { background: var(--brand-dark); color: var(--cream); }
.btn--dark:hover { background: var(--forest); transform: translateY(-1px); }
/* Still visually the smaller/secondary button, but padded enough to
   clear a ~44px touch target — this is a real tappable CTA on mobile
   (room-card "Rezervovat"), not just a desktop-only detail. */
.btn--sm { padding: 0.85em 1.3em; font-size: var(--fs-xs); }

.link-underline {
  position: relative;
  padding-bottom: 0.15em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--duration-med) var(--ease);
}
.link-underline:hover { background-size: 100% 1px; }

/* Reveal-on-scroll (JS toggles .is-visible via IntersectionObserver) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--reveal-i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.simple-list { display: flex; flex-direction: column; gap: 0.6rem; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.center-x { margin-inline: auto; }
.justify-center { justify-content: center; }
.min-vh-70 { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.measure { max-width: 640px; }
