/* ==========================================================================
   Workers Nest – štýly
   ========================================================================== */

/* Web má len tmavú verziu – nezávisle od nastavenia zariadenia návštevníka. */
:root {
  color-scheme: dark;

  --bg: #0f1412;
  --surface: #18201c;
  --surface-2: #131b17;
  --text: #e8ece9;
  --muted: #9da8a2;
  --border: #26302b;
  --accent: #8fcab4;
  --accent-soft: #1b2c25;

  --dark: #0a100e;
  --dark-2: #152b24;
  --on-dark: #f3f6f4;
  --on-dark-muted: rgba(243, 246, 244, 0.74);
  --mint: #9fd6c1;
  --mint-hover: #bce5d5;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 56px -20px rgba(0, 0, 0, 0.75);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Základ ---------- */

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

/* Sekcie majú veľký horný odstup, preto pri skoku z menu môžu začínať úplne hore
   (hlavička prekryje len prázdny odstup a úvod už nie je pod ňou). */
html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--mint); color: var(--dark); }
.btn-primary:hover { background: var(--mint-hover); }

.btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hlavička ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
  color: var(--text);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 1px 0 var(--border);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  --logo-bg: var(--accent);
  --logo-fg: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-mark { width: 38px; height: 38px; }
.site-header:not(.is-scrolled) .logo {
  --logo-bg: #ffffff;
  --logo-fg: #1a3a30;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.nav a:hover,
.nav a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.is-scrolled .nav a:hover,
.is-scrolled .nav a[aria-current="true"] { background: var(--accent-soft); }

.nav .nav-cta {
  margin-left: 8px;
  opacity: 1;
  background: var(--on-dark);
  color: var(--dark);
}
.nav .nav-cta:hover,
.nav .nav-cta[aria-current="true"] { background: var(--mint); color: var(--dark); }
.is-scrolled .nav .nav-cta { background: var(--accent); color: var(--surface); }
.is-scrolled .nav .nav-cta:hover,
.is-scrolled .nav .nav-cta[aria-current="true"] { background: var(--accent); color: var(--surface); opacity: 0.9; }

/* Prepínač jazyka (SK / EN) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition: border-color 0.35s;
}
.lang-switch a {
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.lang-switch a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.is-scrolled .lang-switch { border-color: var(--border); }
.is-scrolled .lang-switch a:hover { background: var(--accent-soft); }
.is-scrolled .lang-switch a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- Úvod (hero) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(120px, 17vh, 168px);
  background: var(--dark);
  color: var(--on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 12, 0.62) 0%, rgba(8, 14, 12, 0.18) 65%, rgba(8, 14, 12, 0) 100%),
    linear-gradient(180deg, rgba(8, 14, 12, 0.5) 0%, rgba(8, 14, 12, 0.1) 30%, rgba(8, 14, 12, 0.45) 65%, rgba(8, 14, 12, 0.9) 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 2.4s var(--ease-out) both;
}

/* Náhradné pozadie, kým nie je nahraná fotka */
.hero-placeholder {
  background:
    radial-gradient(55% 60% at 85% 15%, rgba(159, 214, 193, 0.32), transparent 70%),
    radial-gradient(45% 55% at 5% 95%, rgba(222, 170, 78, 0.2), transparent 70%),
    linear-gradient(155deg, #23584a 0%, #14322a 50%, #0b1512 100%);
}
.hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 75% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 75% 30%, #000 0%, transparent 75%);
}

.hero-content { position: relative; }
.hero .eyebrow { color: var(--mint); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 7.2vw, 5.75rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.hero-lead .icon { margin-top: 0.12em; color: var(--mint); }
.keep-together { display: inline-block; }

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--on-dark); }
.cue-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  animation: cue-bob 2.2s ease-in-out infinite;
}
.cue-icon .icon { width: 18px; height: 18px; }

/* ---------- Sekcie ---------- */

.section { padding-block: clamp(88px, 12vw, 152px); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.section-title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
}

/* Ubytovanie */

.statement {
  margin-top: 22px;
  max-width: 24ch;
  font-size: clamp(1.85rem, 4.4vw, 3.6rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.hl { color: var(--accent); }

.facts {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.fact-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.fact-icon .icon { width: 26px; height: 26px; }

.fact h3 {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact p {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.link-arrow {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Cenník */

.pricing { background: var(--surface-2); }

/* minmax(0, 1fr) = stĺpce ostanú rovnako široké, aj keď má izba veľa ikoniek lôžok */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.beds { display: flex; flex-wrap: wrap; gap: 6px; color: var(--accent); }
.beds .icon { width: 30px; height: 30px; }

.price-card h3 {
  margin-top: 30px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.capacity { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

.price {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}
.amount {
  font-size: clamp(2.25rem, 3.4vw, 2.85rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.amount.is-text { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.25; }
.unit { font-size: 0.9375rem; color: var(--muted); }

.price-note { margin-top: 28px; font-size: 0.9375rem; color: var(--muted); }

/* Kontakt */

.contact { padding-bottom: clamp(56px, 8vw, 96px); }

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(159, 214, 193, 0.22), transparent 60%),
    linear-gradient(150deg, var(--dark-2) 0%, var(--dark) 100%);
  color: var(--on-dark);
}
.contact-card .eyebrow { color: var(--mint); }
.contact-card h2 {
  margin-top: 22px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 550;
  color: var(--on-dark-muted);
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 4px;
  font-size: clamp(1.4rem, 6.4vw, 4.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 3px;
  transition: background-size 0.5s var(--ease-out), color 0.2s;
}
.contact-email:hover { background-size: 100% 3px; color: var(--mint-hover); }

.contact-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-deco {
  position: absolute;
  right: -4%;
  bottom: -18%;
  z-index: -1;
  width: min(460px, 60%);
  aspect-ratio: 1;
  height: auto;
  fill: var(--mint);
  opacity: 0.06;
}

/* Pätička */

.site-footer {
  padding: 8px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.site-footer .logo { color: var(--text); font-size: 1rem; }
.site-footer .logo-mark { width: 30px; height: 30px; }
.footer-mail { color: var(--accent); font-weight: 600; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animácie ---------- */

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.hero-anim {
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 120ms + 200ms);
}

/* Slide efekt pri posúvaní nadol – triedu .motion pridá main.js */
.motion .reveal:not(.is-visible) { opacity: 0; }
.motion .reveal.is-visible {
  animation: rise 1s var(--ease-out) backwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  .motion .reveal:not(.is-visible) { opacity: 1; }
  .hero-anim,
  .hero-photo,
  .cue-icon,
  .motion .reveal.is-visible { animation: none; }
}

/* ---------- Responzivita ---------- */

@media (max-width: 1024px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card { min-height: 240px; }
}

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .logo { gap: 10px; font-size: 1rem; }
  .logo-mark { width: 34px; height: 34px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { margin-left: 0; }
  /* Na mobile sa ukáže len druhý jazyk (na slovenskej stránke „EN“ a naopak) */
  .lang-switch a[aria-current="page"] { display: none; }

  /* Dlhé slová (napr. „Accommodation“) sa musia zmestiť aj na 320 px široký displej */
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.6rem); }
  .hero-actions .btn { flex: 1 1 100%; }

  .fact { padding: 24px; }

  .price-grid { grid-template-columns: 1fr; gap: 12px; }
  .price-card {
    min-height: 0;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    align-items: center;
  }
  .beds { grid-column: 1 / -1; }
  .beds .icon { width: 24px; height: 24px; }
  .price-card h3 { grid-column: 1; grid-row: 2; margin-top: 16px; font-size: 1.125rem; }
  .capacity { grid-column: 1; grid-row: 3; }
  .price {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin: 16px 0 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
  }
  .amount { font-size: 2rem; }
  .amount.is-text { font-size: 1.125rem; text-align: right; }
  .unit { font-size: 0.8125rem; }

  .contact-card { padding: 36px 24px; border-radius: 22px; }
  .contact-actions .btn { flex: 1 1 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Veľmi úzke telefóny: v hlavičke ostane len ikonka loga, aby sa zmestil prepínač jazyka */
@media (max-width: 359px) {
  .site-header .logo span { display: none; }
}

/* ---------- Tlač ----------
   Vytlačí sa všetok obsah, aj ten, ku ktorému sa návštevník ešte neposunul.
   Prehliadače štandardne netlačia pozadia, preto sa pri tlači používa tmavý text
   na bielom papieri (na obrazovke ostáva len tmavá verzia). */
@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #111111;
    --muted: #444444;
    --border: #cccccc;
    --accent: #1f4a3d;
    --accent-soft: #ffffff;
    --dark: #ffffff;
    --dark-2: #ffffff;
    --on-dark: #111111;
    --on-dark-muted: #444444;
    --mint: #1f4a3d;
    --shadow: none;
    --shadow-lg: none;
  }

  .site-header,
  .skip-link,
  .scroll-cue,
  .hero-media,
  .hero-actions,
  .contact-actions,
  .contact-deco { display: none !important; }

  /* Zruší skrytie a posun z animácií aj z main.js (inline štýly pri posúvaní úvodu) */
  .motion .reveal,
  .hero-anim,
  [data-hero-content] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero { min-height: 0; padding: 0 0 24px; }
  .section { padding-block: 24px; }
  .contact-card { padding: 0; border-radius: 0; background: none; }
  .fact,
  .price-card { break-inside: avoid; }
}
