/* ======================================================================
   Hotel Carrera – vlastné štýly (dopĺňajú Tailwind)
   Farby: čierna #1c1c1c, biela #fff, zlatá (doplnková) #b19f6a
   ====================================================================== */

/* --- Fonty --------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvXDTbtPY_Q.woff2) format('woff2');
}

:root {
  --ink: #1c1c1c;
  --gold: #b19f6a;
  --paper: #f7f6f3;
  --muted: #8a8580;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* Malý veľký text – „eyebrow" nad nadpismi */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Tenká zlatá linka */
.rule-gold { display: inline-block; width: 46px; height: 2px; background: var(--gold); }

/* --- Wordmark / logo ---------------------------------------------- */
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  position: relative;
  display: inline-block;
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
}

/* --- Tlačidlá ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.9rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: #fff; }

/* --- Header -------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.site-header a { color: inherit; }
/* Priehľadný nad hero */
.site-header.at-top { background: transparent; color: #fff; }
/* Po scrolle – biely podklad */
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  backdrop-filter: saturate(140%) blur(6px);
}
/* Stránky bez hero slidera majú rovno tmavý text na bielom */
.site-header.solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }

.nav-link { position: relative; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobilné menu */
.mobile-menu { transition: opacity .3s ease, visibility .3s ease; }
.mobile-menu.hidden-menu { opacity: 0; visibility: hidden; pointer-events: none; }

/* --- Hero slider -------------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,28,28,.45), rgba(28,28,28,.65)); }

.hero-dots { display: flex; gap: .6rem; }
.hero-dots button { width: 34px; height: 3px; background: rgba(255,255,255,.4); transition: background .25s; }
.hero-dots button.active { background: var(--gold); }

/* --- FAQ akordeón -------------------------------------------------- */
.faq-item { border-bottom: 1px solid #e7e4dd; }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; color: var(--gold); flex: none; }

/* --- Reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Formulár ------------------------------------------------------ */
.field {
  width: 100%; padding: .9rem 1rem; border: 1px solid #ddd9d0; background: #fff;
  font-size: .95rem; color: var(--ink); transition: border-color .2s;
}
.field:focus { outline: none; border-color: var(--gold); }
label.lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Prístupnosť – viditeľný focus */
a:focus-visible, button:focus-visible, .field:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .slide, .reveal, .faq-a, * { transition: none !important; scroll-behavior: auto !important; }
}

/* ====================== Úvodná stránka – doplnky ====================== */

/* Pohyblivý pás (marquee) */
.marquee { overflow: hidden; }
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { padding: 0 1.5rem; }

/* Veľké „vodoznakové" písmeno v pozadí */
.watermark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(7rem, 22vw, 20rem);
  line-height: .8; color: #1c1c1c; opacity: .04; letter-spacing: -.03em;
  pointer-events: none; user-select: none;
}

/* Karta izby – hover zoom */
.room-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.room-card:hover img { transform: scale(1.06); }
.room-card .arrow { transition: transform .35s ease; }
.room-card:hover .arrow { transform: translateX(6px); }

/* Index číslo (Carrera = pretek → poradie) */
.idx { font-family: 'Playfair Display', Georgia, serif; color: var(--gold); font-size: .95rem; letter-spacing: .1em; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  .room-card img { transition: none !important; }
}

/* ====================== Galéria izby ====================== */
.gallery { position: relative; overflow: hidden; }
.g-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.g-slide { min-width: 100%; }
.g-slide img { display: block; width: 100%; }

.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(28,28,28,.45); color: #fff; z-index: 5;
  transition: background .25s; backdrop-filter: blur(2px);
}
.g-arrow:hover { background: var(--gold); }
.g-arrow.prev { left: 12px; }
.g-arrow.next { right: 12px; }

.g-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.g-dots button { width: 9px; height: 9px; border-radius: 9999px; background: rgba(255,255,255,.55); transition: all .25s; }
.g-dots button.active { background: var(--gold); width: 22px; border-radius: 9999px; }

@media (prefers-reduced-motion: reduce) { .g-track { transition: none !important; } }

/* Honeypot – skryté pole proti spam-botom (človek ho nevidí) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ====================== Cookie lišta ====================== */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink); color: #fff;
  transform: translateY(110%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-bar.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }
