/* Biliard Klub Tágo — Y2K chrome */

:root {
  --lavender: #b6a3ff;
  --lavender-deep: #7c62e8;
  --mint: #8ef0c9;
  --mint-deep: #4ad6a4;
  --graphite: #14141c;
  --graphite-soft: #202030;
  --graphite-line: #35354a;
  --paper: #f6f4ff;
  --chrome: linear-gradient(135deg, #ffffff 0%, #e7e2ff 22%, #c9f7e6 52%, #c3b4ff 78%, #ffffff 100%);
  --chrome-dark: linear-gradient(135deg, #2b2b3d 0%, #45406e 35%, #2f5a4e 65%, #302a4f 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -20px rgba(20, 20, 30, 0.45);
  --font-display: "Segoe UI Variable Display", "Segoe UI", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

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

/* ---------- grain overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- icon sprite ---------- */
.icon-sprite { display: none; }
.icon { width: 1.3em; height: 1.3em; stroke: currentColor; fill: none; stroke-width: 1.7; vertical-align: -0.25em; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--mint); color: var(--graphite);
  padding: .6em 1em; z-index: 1000; border-radius: 0 0 .5em 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(20, 20, 28, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 163, 255, 0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-word { width: 128px; height: 27px; }
.logo-word path, .logo-word circle { fill: url(#logoChrome); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.nav-desktop a {
  color: #efe9ff; text-decoration: none; font-weight: 600; font-size: .95rem;
  position: relative; padding-bottom: 4px;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--mint), var(--lavender));
  transition: width .3s ease;
}
.nav-desktop a:hover::after, .nav-desktop a:focus-visible::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link {
  display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none;
  font-weight: 700; font-family: var(--font-mono); font-size: .85rem;
  background: rgba(182, 163, 255, 0.18); padding: .5rem .8rem; border-radius: 999px;
  border: 1px solid rgba(182, 163, 255, 0.4);
}
.cart-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--mint); color: #0c1f17; font-size: .78em; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.menu-toggle {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(182,163,255,.4); border-radius: 50%; color: #fff; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

.nav-mobile {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100vh;
  background: var(--graphite-soft); color: #fff; padding: 5.5rem 1.6rem 2rem;
  transform: translateX(100%); visibility: hidden; transition: transform .35s ease;
  z-index: 95; overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); visibility: visible; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.nav-mobile a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav-mobile .close-menu {
  position: absolute; top: 1.3rem; right: 1.3rem; background: none; border: none; color: #fff; cursor: pointer;
}
.scrim { position: fixed; inset: 0; background: rgba(10,10,16,.55); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 94; }
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; overflow: hidden; isolation: isolate;
  min-height: 44px;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: -1;
  transition: left .35s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }

.btn-primary { background: var(--chrome); color: var(--graphite); background-size: 180% 180%; }
.btn-primary::before { background: linear-gradient(135deg, var(--mint), var(--lavender)); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost::before { background: rgba(255,255,255,.18); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark::before { background: var(--lavender-deep); }
.btn-outline { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-outline::before { background: var(--mint); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--graphite); color: #fff; overflow: hidden;
  padding: 6.5rem 0 4rem;
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
.hero-kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--mint); display: inline-block; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem); color: #fff;
  clip-path: inset(0 100% 0 -5%);
  animation: wipe 1.05s cubic-bezier(.16,1,.3,1) .15s forwards;
}
.hero-title .chrome-text {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes wipe { to { clip-path: inset(0 0 0 -5%); } }
.hero-lede { font-size: 1.15rem; color: #d9d4f2; max-width: 32rem; }
.hero-lede.lede-on-light { color: var(--graphite); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-art { position: relative; aspect-ratio: 1/1; max-width: 420px; margin-inline: auto; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
  filter: saturate(1.05) contrast(1.02);
}
.hero-art svg.hero-overlay {
  position: absolute; inset: -8% -12% auto auto; width: 62%; height: auto; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}
.hero-art .hero-badge { position: absolute; left: -10%; bottom: -8%; width: 42%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-title { clip-path: none; animation: none; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.js-hide { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.js-hide.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hide { opacity: 1; transform: none; transition: none; }
}

/* ---------- sections generic ---------- */
.section { padding: 4.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head .eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--lavender-deep); display: block; margin-bottom: .6rem;
}
.section-dark { background: var(--graphite); color: #fff; }
.section-dark .section-head .eyebrow { color: var(--mint); }
.section-mint { background: linear-gradient(180deg, var(--mint-light, #e8fff5), var(--paper)); }

.divider { width: 100%; height: auto; display: block; }

/* ---------- story / horizontal scroll ---------- */
.story {
  background: var(--graphite); color: #fff; padding: 4.5rem 0;
}
.story-head { margin-bottom: 2rem; }
.story-track {
  display: grid; gap: 1.4rem;
}
.story-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--graphite-soft); border: 1px solid var(--graphite-line);
  padding: 1.8rem; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.story-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
  transition: transform .5s ease;
}
.story-panel:hover img { transform: scale(1.06); }
.story-panel .story-num {
  font-family: var(--font-mono); color: var(--mint); font-size: .85rem; margin-bottom: .4rem; position: relative;
}
.story-panel h3, .story-panel p { position: relative; }

@media (min-width: 1000px) {
  .story-track {
    grid-auto-flow: column; grid-auto-columns: min(78vw, 480px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
    scrollbar-color: var(--lavender) transparent;
  }
  .story-panel { scroll-snap-align: start; min-height: 420px; }
}

/* ---------- Tágo Rozvrh feature ---------- */
.schedule {
  background: var(--paper);
}
.schedule-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid #e7e1ff; box-shadow: var(--shadow-soft);
  padding: 1.8rem; position: relative; overflow: hidden;
}
.schedule-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.schedule-legend { display: flex; gap: 1.2rem; font-size: .85rem; font-family: var(--font-mono); }
.legend-dot { width: .8em; height: .8em; border-radius: 50%; display: inline-block; margin-right: .4em; vertical-align: -0.05em; }
.legend-dot.free { background: var(--mint-deep); }
.legend-dot.busy { background: #c9c3e0; }
.schedule-grid { overflow-x: auto; }
.schedule-table { border-collapse: separate; border-spacing: 6px; min-width: 560px; width: 100%; }
.schedule-table th { font-family: var(--font-mono); font-size: .78rem; color: #6b6480; text-align: left; padding: 0 .3rem .4rem; }
.schedule-table td:first-child, .schedule-table th:first-child { position: sticky; left: 0; background: #fff; }
.slot-btn {
  width: 100%; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid #e3ddf7; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem; background: var(--mint-light, #e8fff5); color: #0c3a2a;
  transition: transform .15s ease, background .2s ease;
}
.slot-btn:hover { transform: translateY(-2px); background: var(--mint); }
.slot-btn.busy { background: #ece9f9; color: #938cae; cursor: not-allowed; }
.slot-btn.selected { background: var(--lavender); color: #1c1130; box-shadow: 0 0 0 2px var(--lavender-deep) inset; }
.schedule-note { font-size: .85rem; color: #6b6480; margin-top: 1rem; }

/* ---------- product/service cards ---------- */
.card-grid {
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid #ece7f9;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 46px -22px rgba(20,20,30,.5); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--graphite-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; background: rgba(20,20,28,.75); color: var(--mint);
  font-family: var(--font-mono); font-size: .72rem; padding: .25em .7em; border-radius: 999px;
}
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-price { font-family: var(--font-mono); font-weight: 700; color: var(--lavender-deep); }
.card-duration { font-size: .8rem; color: #6b6480; font-family: var(--font-mono); }

/* strip (mobile scroll-snap) */
.strip {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.strip .card { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 760px) {
  .strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); overflow: visible; }
  .strip .card { flex: initial; }
}

/* ---------- product detail ---------- */
.product-detail { display: grid; gap: 2.4rem; }
@media (min-width: 880px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-price-box { background: #fff; border: 1px solid #ece7f9; border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-soft); }
.price-tag { font-size: 2rem; font-family: var(--font-display); color: var(--lavender-deep); }
.qty-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.qty-row input { width: 4.5rem; padding: .5rem; border-radius: var(--radius-sm); border: 1px solid #d8d2f0; font-size: 1rem; text-align: center; }
.qty-row button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d8d2f0; background: #fff; font-size: 1.2rem; cursor: pointer; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid #ece7f9; }
.cart-table img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.cart-row-remove { background: none; border: none; color: #a5415c; cursor: pointer; font-weight: 700; }
.cart-summary { background: #fff; border-radius: var(--radius-md); border: 1px solid #ece7f9; padding: 1.6rem; box-shadow: var(--shadow-soft); }
.cart-empty { padding: 3rem 0; text-align: center; color: #6b6480; }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  padding: .75em .9em; border-radius: var(--radius-sm); border: 1.5px solid #d8d2f0; font: inherit;
  accent-color: var(--lavender-deep); background: #fff;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--lavender-deep); }
.field.error input, .field.error textarea { border-color: #a5415c; }
.field-error { color: #a5415c; font-size: .82rem; min-height: 1.1em; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { padding: .9rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; }
.form-status.ok { background: #e3fdf1; color: #0c3a2a; }
.form-status.err { background: #fde9ee; color: #7a1d36; }

/* ---------- legal / content pages ---------- */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { margin-bottom: 1em; }

.faq-item { border-bottom: 1px solid #ece7f9; padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: .4rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding-top: .5rem; color: #4a4560; }

/* ---------- badges / seals ---------- */
.badge-row { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.badge-row svg { width: 72px; height: 72px; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #cfc9e8; padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.4rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { color: #cfc9e8; text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-brand p { color: #a8a0c9; max-width: 22rem; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.newsletter-form input { flex: 1; min-width: 10rem; padding: .7em .9em; border-radius: var(--radius-sm); border: 1px solid #45415e; background: #1c1c28; color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c3d; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8d85ad; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin-inline: auto;
  background: var(--graphite-soft); color: #fff; border: 1px solid var(--graphite-line); border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-soft); z-index: 200; display: none; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 18rem; color: #e6e2f7; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 6rem 0; }
.notfound svg { width: min(360px, 80vw); height: auto; margin-bottom: 1.5rem; }

/* ---------- continuous subtle motion ---------- */
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sheen-sweep 5s ease-in-out infinite;
}
@keyframes sheen-sweep { 0% { left: -60%; } 50% { left: 120%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .sheen::after { animation: none; display: none; } }

.marquee-wrap { overflow: hidden; background: var(--mint); padding: .6rem 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); }
.marquee { display: flex; gap: 2.5rem; white-space: nowrap; animation: marquee 22s linear infinite; font-family: var(--font-mono); font-weight: 700; color: var(--graphite); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } .marquee-wrap { overflow-x: auto; } }

@media (max-width: 420px) {
  .section { padding: 3rem 0; }
}
