/* branch.css — page styles for pobocka.html (page owner, TASK-7). Builds on base.css primitives.
   Design: pen frames OZvaf (1440) / w7Md9 (390). Mobile-first; 768 / 1024 / 1280. */

/* Address variants (short on phones, full from tablet up) */
.only-wide { display: none; }
@media (min-width: 768px) {
  .only-wide { display: inline; }
  .only-narrow { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.branch-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; background: var(--dark); color: #fff;
}
.branch-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.branch-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 11, 9, .25) 0%, rgba(13, 11, 9, .95) 75%);
}
.branch-hero__inner {
  display: flex; flex-direction: column; gap: 22px;
  width: 100%; padding-block: 28px;
}
.branch-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.branch-hero__title {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  font-size: 44px; line-height: 46px; overflow-wrap: anywhere;
}
.branch-hero__address { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-on-dark); }
.branch-hero__address .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-on-dark); }
.branch-hero__ctas { display: flex; gap: 10px; }
.branch-hero__ctas .btn { flex: 1 1 0; padding: 15px 12px; gap: 8px; font-size: 15px; }
.branch-hero__ctas .btn .icon { width: 16px; height: 16px; }
.branch-hero--loading { min-height: 440px; }
.branch-hero--loading::before { background: var(--dark); }

/* Breadcrumb */
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.3; color: var(--text-on-dark); }
.crumbs__list li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__sep { width: 13px; height: 13px; color: var(--text-on-dark-muted); }
.crumbs a { color: var(--text-on-dark); transition: color .2s var(--ease); }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:focus-visible { outline-color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

@media (min-width: 768px) {
  .branch-hero__title { font-size: 56px; line-height: 60px; }
  .branch-hero__address { font-size: 16px; line-height: 24px; }
  .branch-hero__address .icon { margin-top: 3px; }
  .branch-hero__ctas .btn { flex: 0 0 auto; padding: 16px 32px; }
}
@media (min-width: 1024px) {
  .branch-hero, .branch-hero--loading { min-height: 460px; }
  .branch-hero::before { background: linear-gradient(180deg, rgba(13, 11, 9, .25) 0%, rgba(13, 11, 9, .9) 100%); }
  .branch-hero__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 56px; }
  .branch-hero__text { gap: 20px; max-width: 760px; }
  .branch-hero__title { font-size: 72px; line-height: 76px; }
  .branch-hero__address { align-items: center; gap: 10px; font-size: 17px; }
  .branch-hero__address .icon { width: 18px; height: 18px; margin-top: 0; }
  .branch-hero__ctas { gap: 16px; flex-shrink: 0; }
  .branch-hero__ctas .btn { font-size: 16px; gap: 10px; }
  .branch-hero__ctas .btn .icon { width: 18px; height: 18px; }
  .crumbs__list { gap: 10px; font-size: 14px; }
  .crumbs__list li { gap: 10px; }
  .crumbs__sep { width: 14px; height: 14px; }
}

/* ==========================================================================
   Quick facts (base .stats / .stat)
   ========================================================================== */
.branch-facts { border-bottom: 1px solid var(--border); }
.branch-facts .stats { margin-block: 0; border-bottom: 0; } /* padding comes from base .stats */
.branch-facts .stat__value { line-height: 38px; } /* Anton "normal" line-height in the design */
.branch-facts .stat__label { line-height: 18px; }
@media (min-width: 1024px) {
  .branch-facts .stat__value { line-height: 50px; }
  .branch-facts .stat__label { line-height: 1.2; white-space: nowrap; }
}

/* ==========================================================================
   Info: about, hours, contact, map
   ========================================================================== */
.branch-info__grid { display: flex; flex-direction: column; gap: 36px; }
.branch-info__main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.branch-info__title { font-size: 30px; line-height: 35px; }
.branch-info__lead { font-size: 15px; line-height: 25px; color: var(--text-muted); }
.branch-info__cols { display: flex; flex-direction: column; gap: 36px; }

.branch-label {
  gap: 16px; padding-bottom: 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2;
  letter-spacing: 3px; text-transform: uppercase; color: var(--text-primary);
}
@media (min-width: 1024px) { .branch-label { gap: 16px; } }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 18px; }
.hours th, .hours td { padding: 11px 0; vertical-align: middle; }
.hours th { text-align: left; font-weight: 400; color: var(--text-muted); }
.hours td { text-align: right; font-weight: 500; color: var(--text-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours td.is-closed { color: var(--text-muted); }
.hours .is-today th { color: var(--text-primary); font-weight: 600; }
.hours .is-today td { font-weight: 600; }
.today-tag {
  display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; vertical-align: 1px;
  font-size: 11px; font-weight: 600; line-height: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.hours__note { padding-top: 14px; font-size: 13px; line-height: 20px; color: var(--text-muted); }

/* Contact list */
.contact { display: flex; flex-direction: column; gap: 20px; padding-top: 11px; }
.contact__item { display: flex; align-items: flex-start; gap: 14px; }
.contact__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--accent);
}
.contact__icon .icon { width: 16px; height: 16px; }
.contact__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact__main { font-size: 15px; font-weight: 600; line-height: 18px; color: var(--text-primary); overflow-wrap: anywhere; }
a.contact__main { transition: color .2s var(--ease); }
a.contact__main:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact__sub { font-size: 13px; line-height: 16px; color: var(--text-muted); }

/* Map */
.branch-map { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.branch-map__map { height: 300px; }
.branch-map__caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 16px; }
.branch-map__note { display: flex; align-items: flex-start; gap: 6px; color: var(--text-muted); }
.branch-map__note .icon { width: 14px; height: 14px; margin-top: 1px; color: var(--accent); }
.branch-map__link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--accent); font-weight: 600; }
.branch-map__link .icon { width: 14px; height: 14px; }
.branch-map__link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
  .branch-info__cols { flex-direction: row; gap: 48px; }
  .branch-info__cols > * { flex: 1 1 0; min-width: 0; }
  .branch-map__map { height: 420px; }
}
@media (min-width: 1024px) {
  .branch-info__grid, .branch-info__main { gap: 48px; }
  .branch-info__title { font-size: 44px; line-height: 51px; }
  .branch-info__lead { font-size: 16px; line-height: 27px; }
  .branch-info__cols { gap: 56px; }
  .branch-map__caption { align-items: center; }
  .branch-map__note { align-items: center; gap: 8px; }
  .branch-map__note .icon { margin-top: 0; }
}
@media (min-width: 1280px) {
  .branch-info__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: start; gap: 72px; }
  .branch-map__map { height: 560px; }
}

/* ==========================================================================
   Dishes ("Menu Item" look, pen sD6BD)
   ========================================================================== */
.branch-dishes .h2 { line-height: 1.48; } /* design uses Anton "normal" line-height here */
.branch-dishes__grid { display: flex; flex-direction: column; gap: 28px; }
.branch-dishes__more { align-self: stretch; padding: 14px 32px; gap: 8px; font-weight: 500; }
.dishes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.dish { display: flex; align-items: center; gap: 16px; }
.dish__img { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm); object-fit: cover; background: var(--border); }
.dish__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.dish__name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 400; font-size: 17px; line-height: 1.2; text-transform: uppercase; color: var(--text-primary);
}
.dish__mark { display: inline-flex; }
.dish__mark .icon { width: 16px; height: 16px; }
.dish__mark--veg { color: var(--veg); }
.dish__mark--spicy { color: var(--accent); }
.dish__desc { font-size: 14px; line-height: 22px; color: var(--text-muted); }
.dish__meta { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--text-muted); }
.dish__price { flex-shrink: 0; font-family: var(--font-heading); font-size: 18px; line-height: 1.2; color: var(--text-primary); white-space: nowrap; }
/* Mobile design lists four dishes */
.dish:nth-child(n+5) { display: none; }

@media (min-width: 768px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; }
  .dish:nth-child(n+5) { display: flex; }
  .dish__img { width: 88px; height: 88px; }
  .branch-dishes__more { align-self: flex-start; }
}
@media (min-width: 1024px) {
  .branch-dishes__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px 32px; }
  .branch-dishes__head { grid-column: 1; grid-row: 1; }
  .branch-dishes__more { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; font-size: 16px; }
  .branch-dishes__more .icon { width: 18px; height: 18px; }
  .dishes { grid-column: 1 / -1; grid-row: 2; gap: 48px; }
  .dish__name { font-size: 18px; }
}
@media (min-width: 1280px) {
  .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Nearby branches
   ========================================================================== */
.branch-nearby__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 48px; }
.branch-nearby__left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.branch-nearby__title { font-family: var(--font-heading); font-weight: 400; font-size: 26px; line-height: 1.48; text-transform: uppercase; color: var(--text-primary); }
.branch-nearby__chips, .branch-missing__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.branch-nearby .chip, .branch-missing .chip { white-space: normal; }
.branch-nearby__all { padding: 15px 16px; font-weight: 600; }
.branch-nearby__all .icon { color: var(--accent); }

@media (min-width: 768px) {
  .branch-nearby__chips, .branch-missing__chips { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .branch-nearby__all { align-self: flex-start; padding: 14px 28px; }
}
@media (min-width: 1024px) {
  .branch-nearby__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding-block: 72px; }
  .branch-nearby__title { font-size: 30px; }
  .branch-nearby__all { align-self: center; flex-shrink: 0; font-size: 16px; font-weight: 500; }
  .branch-nearby__all .icon { width: 18px; height: 18px; color: currentColor; }
}

/* ==========================================================================
   Not found / no-JS
   ========================================================================== */
.branch-missing__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.branch-missing__chips { max-width: 880px; }
.branch-missing .lead { max-width: 620px; }
.branch-missing__chips { margin-top: 12px; }

/* Until branch.js has rendered (aria-busy, before first paint in Chromium thanks to
   blocking="render"; other browsers may paint once earlier) keep the footer below the
   fold so it does not flash up and then jump away (TASK-11). */
.branch-page[aria-busy="true"] { min-height: 100vh; }
