/* ============================================================
   ROZCESTNÍK (branch hub) — index.html only.
   One viewport, no scroll, on any device: html/body are locked to
   100% height with overflow hidden, and every size below is a clamp()
   tuned to still fit a short mobile viewport (~570px tall) with the
   logo showing. If a 3rd/4th branch card ever makes the grid taller
   than that, drop --hub-logo-h below to claw back space before
   touching anything else.
   ============================================================ */
html, body.hub-page{
  height: 100%;
  overflow: hidden;
}

.hub{
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Same fluid seam weight as every other block edge on the branch
     sites, just on all 4 sides here instead of one — this page has
     no "next section" to hand off to. */
  border: clamp(4px, 0.7vw, 8px) solid var(--ink);
}

/* Absolutely positioned over the background, not a flex/flow sibling of
   .hub-inner — this page's height is a fixed, no-scroll budget (see the
   file banner above), so anything added to the normal flow risks pushing
   the logo/cards past the fold on short viewports. */
.hub > .lang-switch{
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.4rem);
  right: clamp(0.75rem, 3vw, 1.4rem);
  z-index: 2;
}

.hub-bg{ position: absolute; inset: 0; z-index: 0; }
.hub-bg-img{
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Darker + heavier than .hero-overlay on purpose — this page is
   just a logo + 2 short lines + cards, all in --paper/--gold, so it
   needs more contrast than a hero that also has a big illustrated
   character to carry visual weight. */
.hub-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(11,36,32,0.55) 0%, rgba(11,36,32,0.8) 70%),
    linear-gradient(180deg, rgba(11,36,32,0.55) 0%, rgba(11,36,32,0.75) 100%);
}

.hub-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.9rem, 2.6vw, 1.6rem);
  padding: clamp(1rem, 4vh, 2rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 760px;
  width: 100%;
}

.hub-logo{
  width: clamp(90px, 16vw, 180px);
  height: auto;
}
/* Shortest phones (landscape included) — logo is the first thing to
   give up its space, not the branch cards themselves. */
@media (max-height: 560px){
  .hub-logo{ display: none; }
}

.hub-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hub-banner{
  font-family: var(--font-comic);
  font-weight: 400;
  color: var(--paper);
  font-size: clamp(1.7rem, 5.5vw, 2.8rem);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 var(--ink);
}
.hub-tagline{
  font-family: var(--font-kicker);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
}

.hub-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
  width: 100%;
}

.hub-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  padding: clamp(1rem, 2.6vh, 1.6rem) 1.1rem clamp(0.9rem, 2.2vh, 1.3rem);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.hub-card:hover{
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--ink);
}
.hub-card-tag{
  display: inline-block;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--font-comic);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}
.hub-card-name{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--ink);
}
.hub-card-address{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: #5c5346;
}
.hub-card-btn{
  margin-top: 0.3rem;
  font-size: 0.95rem;
  padding: 0.5rem 1.4rem 0.45rem;
}

/* Future branches ship the same .hub-card markup as a live <a> the
   moment their site exists — this modifier is only for slots that
   aren't built yet. */
.hub-card--soon{
  background: rgba(255,255,255,0.55);
  border-style: dashed;
  opacity: 0.75;
}
.hub-card-tag--soon{ background: #8a8072; }
