/* rezervujmi.sk – waiting page · Byteminds štýl (paleta a písma z byteminds.sk / IG šablón) */

/* Fonty sú lokálne (variabilné Montserrat 300–700, Roboto Mono 400–500). Slovenská diakritika je v latin-ext. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/robotomono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/robotomono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #00A6E3;        /* brand modrá – dekorácie, výplne */
  --blue-ink: #007aa8;    /* tmavšia modrá pre text a výplne s bielym textom (kontrast ≥ 4,5:1) */
  --ink: #2C3E50;
  --soft: #5d6d6e;
  --bg: #f8f9fa;
  --line: rgba(44, 62, 80, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 78% 48%, rgba(0, 166, 227, .12), rgba(0, 166, 227, 0) 100%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 54px 54px, 54px 54px;
  background-position: 0 0, 0 -1px, -1px 0;
}

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 5; }
.skip:focus { top: 12px; }

a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* hlavička */
.top, .foot { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; line-height: 1.2; }
.brand i { font-style: normal; font-weight: 300; color: var(--blue-ink); }
.brand:hover { color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 10px; font-family: 'Roboto Mono', ui-monospace, Menlo, monospace; font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: #fff; border-radius: 999px; padding: 9px 16px; line-height: 1.2; box-shadow: 0 0 0 1px rgba(44, 62, 80, .1), 0 8px 20px -10px rgba(44, 62, 80, .3); }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(0, 166, 227, .5); }

/* hlavný obsah */
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(8px, 3vw, 24px) clamp(20px, 5vw, 64px) clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 56px); align-items: center; }
.copy { min-width: 0; }
.kick { font-family: 'Roboto Mono', ui-monospace, Menlo, monospace; font-weight: 500; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 20px; }
h1 { font-size: clamp(2.55rem, 1.2rem + 6.2vw, 6.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); overflow-wrap: break-word; }
h1 span { display: block; }
h1 .b { font-weight: 300; color: var(--blue-ink); }
.lead { margin-top: clamp(20px, 3vw, 36px); max-width: 30em; font-size: clamp(1.05rem, .95rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.4; color: var(--soft); letter-spacing: -.01em; }
.lead b { color: var(--ink); font-weight: 600; }

.contact { margin-top: clamp(20px, 3vw, 32px); }
.contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.contact a span { font-weight: 400; opacity: .85; }
.contact a:hover { background: var(--blue-ink); }
.contact a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 420px) { .contact a { width: 100%; justify-content: center; flex-wrap: wrap; } }

/* vizuál: interaktívna rezervácia stola */
.visual { justify-self: center; width: 100%; max-width: 440px; }
.cal { background: #fff; border-radius: 24px; padding: clamp(16px, 3vw, 24px); box-shadow: 0 0 0 1px rgba(44, 62, 80, .08), 0 40px 60px -30px rgba(44, 62, 80, .4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-title { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.cal-day, .hint, .legend, .door-t { font-family: 'Roboto Mono', ui-monospace, Menlo, monospace; }
.cal-day { font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: rgba(0, 166, 227, .1); border-radius: 999px; padding: 5px 10px; }

.booking button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.booking button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.guests { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lbl { font-size: .9rem; font-weight: 500; color: var(--soft); }
.step { display: flex; align-items: center; gap: 4px; background: #f3f5f7; border-radius: 999px; padding: 4px; }
.step button { width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(44, 62, 80, .15); transition: transform .15s ease, background-color .2s ease; }
.step button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.step button:active:not(:disabled) { transform: scale(.9); }
.step button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.step output { min-width: 5.6em; text-align: center; font-size: .9rem; font-weight: 500; }
.step output b { font-weight: 700; font-size: 1.05rem; display: inline-block; }
.step output b.bump { animation: bump .3s ease; }

.times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.times button { font-family: 'Roboto Mono', ui-monospace, Menlo, monospace; font-size: .78rem; font-weight: 500; padding: 9px 0; border-radius: 10px; background: #f3f5f7; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.times button:hover { background: rgba(0, 166, 227, .16); }
.times button:active { transform: scale(.94); }
.times button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 400px) { .times { grid-template-columns: repeat(3, 1fr); } }

/* pôdorys */
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.room { fill: #f6f8fa; stroke: rgba(44, 62, 80, .12); stroke-width: 1.5; }
.win { stroke: var(--blue); stroke-width: 4; stroke-linecap: round; opacity: .45; }
.door { stroke: #fff; stroke-width: 5; }
.door-t { font-size: 9px; font-weight: 500; letter-spacing: .12em; fill: var(--soft); text-anchor: middle; }
.tbl { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.tbl .tt { fill: #fff; stroke: rgba(44, 62, 80, .3); stroke-width: 1.5; transition: fill .25s ease, stroke .25s ease, stroke-width .2s ease; }
.tbl .ch { fill: #d6dde3; transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), fill .25s ease; }
.tbl .n { font-size: 12px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .25s ease; }
.tbl:not(.taken):not(.small):hover .ch, .tbl:focus-visible .ch, .tbl.sel .ch { transform: translate(var(--dx, 0), var(--dy, 0)); }
.tbl:not(.taken):not(.small):hover .tt, .tbl:focus-visible .tt { stroke: var(--blue); stroke-width: 2.5; }
.tbl.taken, .tbl.small { cursor: not-allowed; }
.tbl.taken .tt { fill: #dff2fa; stroke: rgba(0, 166, 227, .35); }
.tbl.taken .ch { fill: #c7e6f3; }
.tbl.taken .n { fill: #7f9aa8; }
.tbl.small { opacity: .35; }
.tbl.sel .tt { fill: var(--blue-ink); stroke: var(--blue-ink); }
.tbl.sel .n { fill: #fff; }
.tbl.sel .ch.on { fill: var(--blue); }
.tbl.mine .tt { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
.tbl.nope .tt { animation: nope .35s ease; transform-box: fill-box; transform-origin: center; }

.legend { list-style: none; display: flex; justify-content: center; gap: 16px; margin: 10px 0 14px; font-size: .7rem; letter-spacing: .04em; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.l-free { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(44, 62, 80, .3); }
.l-taken { background: #dff2fa; box-shadow: inset 0 0 0 1.5px rgba(0, 166, 227, .35); }
.l-sel { background: var(--blue-ink); }

.go { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff !important; font-weight: 600 !important; font-size: .95rem; letter-spacing: -.01em; transition: background-color .25s ease, transform .15s ease; }
.go:hover:not(:disabled) { background: var(--blue-ink); }
.go:active:not(:disabled) { transform: scale(.98); }
.go:disabled { background: #eef1f4; color: var(--soft) !important; cursor: default; }
.go svg { width: 20px; height: 20px; flex: none; display: none; }
.go.done { background: var(--blue-ink); cursor: default; }
.go.done svg { display: block; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }

.hint { margin-top: 14px; text-align: center; font-size: .75rem; letter-spacing: .03em; color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* „ťuknutie“ pri automatickej ukážke */
.booking button.tap { animation: tap .45s ease-out; }
.tbl.tap .tt { stroke: var(--blue); stroke-width: 3; }

/* pätka */
.foot { padding-top: 16px; padding-bottom: 28px; justify-content: flex-start; flex-wrap: wrap; gap: 8px; font-size: .95rem; font-weight: 500; color: var(--soft); }
.foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.copy-r { margin-left: auto; font-size: .85rem; font-weight: 500; }
@media (max-width: 480px) { .copy-r { margin-left: 0; flex-basis: 100%; } }
.foot img { width: 22px; height: 22px; display: block; }

/* animácia – iba keď ju používateľ nemá vypnutú; inak ostáva statický stav vyššie */
@media (prefers-reduced-motion: no-preference) {
  .pill::before { animation: pulse 2.4s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .booking *, .booking *::before { animation: none !important; transition: none !important; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 166, 227, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 166, 227, 0); } }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(0, 166, 227, .6); } 100% { box-shadow: 0 0 0 12px rgba(0, 166, 227, 0); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: translateY(0); } 40% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* široké obrazovky: dva stĺpce */
@media (min-width: 900px) {
  main { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  h1 { font-size: clamp(2.5rem, 1rem + 4.2vw, 5.5rem); }
  .visual { justify-self: end; }
}
@media (min-width: 1600px) {
  .top, .foot, main { max-width: 1520px; }
  .visual { max-width: 520px; }
}
