/* Sokolská 31 — Design A, "The sign, as type", as a block theme.
   Ported from design-exploration/homepage/styles.css. Colours from the storefront:
   dark stone ground, signage red, light stone field.
   Class names on blocks (Advanced → Additional CSS class) match the prototype's: hero, facade, blade, field … */

:root {
  --bg: var(--wp--preset--color--stone-dark, #1b1b1c);
  --surface: var(--wp--preset--color--surface, #252527);
  --surface-2: var(--wp--preset--color--surface-2, #303032);
  --ink: var(--wp--preset--color--ink, #f0f0ee);
  --muted: var(--wp--preset--color--muted, #b3b1ac);
  --accent: var(--wp--preset--color--signage-red, #c8102e);
  --accent-ink: #ffffff;
  --stone: var(--wp--preset--color--stone-light, #e2e3e1);
  --stone-ink: #1b1b1c;
  --tbc: rgba(200, 16, 46, 0.26);

  --m: 32px;
  --gap: 24px;
  --section: 176px;
  --bar: 72px;

  --step-small: var(--wp--preset--font-size--small);
  --step-body: var(--wp--preset--font-size--body);
  --step-lead: var(--wp--preset--font-size--lead);
  --step-head: var(--wp--preset--font-size--head);
  --step-display: var(--wp--preset--font-size--display);

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + var(--wp-admin--admin-bar--height, 0px)); }
body { margin: 0; font-stretch: 100%; }
.wp-site-blocks p, .wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks figure, .editor-styles-wrapper p, .editor-styles-wrapper figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link.screen-reader-text:focus { clip-path: none; width: auto; height: auto; left: var(--m); top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }

/* Display face: Archivo at its narrowest, heaviest, in capitals, like signage lettering */
h1, h2, .wordmark, .rows p, .foot-name, .blade p, .price-amount {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.88;
  text-wrap: balance;
}

/* A fact the owner has not confirmed yet (editor toolbar: "To be confirmed") */
mark.tbc {
  background: var(--tbc);
  color: inherit;
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Bar ---------- */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 5;
  background: var(--bg);
}
.bar {
  display: flex; align-items: center; gap: 32px;
  height: var(--bar); padding: 0 var(--m);
}
.bar > * { margin: 0 !important; }
.wordmark { font-size: var(--step-lead); line-height: 1; margin-right: auto !important; }
.wordmark a { text-decoration: none; }
.nav { font-size: var(--step-small); }
.nav .wp-block-navigation__container { gap: 28px; }
.nav .wp-block-navigation-item__content { text-decoration: none; padding: 8px 0; }
.nav .wp-block-navigation-item__content:hover { text-decoration: underline; }
.lang { display: flex; gap: 2px; margin-right: -10px !important; }
.lang a {
  font-size: var(--step-small); font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 8px 10px; min-width: 44px; text-align: center;
  transition: color .2s, background-color .2s;
}
.lang a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.lang a:hover { color: var(--ink); }

/* Buttons: the prototype's .btn */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.wp-block-button__link.wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-decoration: none;
  border-radius: 0;
  transition: transform .18s var(--ease), background-color .18s;
}
.wp-block-button__link.wp-element-button:hover { background: #a90d26; color: var(--accent-ink); }
.wp-block-button__link.wp-element-button:active { transform: translateY(1px) scale(.985); }
.wp-block-button.is-style-text .wp-block-button__link {
  background: transparent; color: inherit; min-height: 0; padding: 8px 0;
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.wp-block-button.is-style-text .wp-block-button__link:hover { background: transparent; color: inherit; text-decoration-thickness: 2px; }
.bar-cta .wp-block-button__link.wp-element-button { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
/* Hidden until the hero's own button scrolls away. visibility (not only opacity) keeps it out of the
   tab order and the accessibility tree while it cannot be seen; the delay lets the fade-out finish. */
.js .bar-cta { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.js .scrolled .bar-cta { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }

/* ---------- Hero: the title on the left, the facade and its sign on the right ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: 0 var(--m);
  min-height: calc(100svh - var(--bar));
}
.hero-text {
  grid-column: 1 / 8;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 6vh;
}
.hero h1 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; margin-top: 36px !important; max-width: 30ch; }
.actions { margin-top: 40px !important; }
.facts { margin-top: 80px !important; display: grid; gap: 10px; font-size: var(--step-body); }
.fact { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.fact > * { margin: 0 !important; }
.fact-label { color: var(--muted); }

.facade {
  grid-column: 8 / 13;
  display: grid; grid-template-columns: 1fr 23%;
  margin-bottom: var(--m);
  min-height: 560px;
}
.facade > * { margin: 0 !important; }
.facade .facade-photo { position: relative; overflow: hidden; background: var(--surface); min-height: 100%; }
.facade .facade-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  filter: saturate(.9) contrast(1.04) brightness(.95);
}
.facade .facade-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 34ch;
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: var(--step-small); line-height: 1.4; padding: 10px 12px;
}
.blade {
  background: var(--accent); color: var(--ink);
  container-type: size;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blade p {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: min(15.6cqh, 92cqw);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

/* ---------- Services: two fields of colour ---------- */
.services { margin-top: calc(var(--section) - 48px) !important; }
.field {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  grid-template-rows: auto 1fr auto;
  min-height: 56svh;
  padding: 64px var(--m) 56px;
}
.field > * { margin: 0 !important; }
.field-light { background: var(--stone); color: var(--stone-ink); }
.field-light mark.tbc { background: rgba(200, 16, 46, 0.16); }
.field-dark { background: var(--surface); }
.field-copy {
  grid-column: 8 / 12; grid-row: 1;
  font-size: var(--step-lead); line-height: 1.35;
  display: flex; flex-direction: column; gap: 18px;
}
.field-copy > * { margin: 0 !important; }
.field-phrase { grid-column: 1 / 11; grid-row: 3; font-size: var(--step-display); max-width: 8em; }
.field-dark .field-copy { grid-column: 2 / 6; }
.field-dark .field-phrase { grid-column: 3 / 13; justify-self: end; text-align: right; }

/* Luggage storage: signage red, as the footer. Heading on top; the copy and the price beneath it. */
.field-red { background: var(--accent); color: var(--accent-ink); --tbc: rgba(0, 0, 0, 0.28); }
.field-red .field-phrase { grid-column: 1 / 13; grid-row: 1; }
.field-red .field-copy { grid-column: 1 / 6; grid-row: 3; align-self: end; }
.field-red .price { grid-column: 7 / 13; grid-row: 3; align-self: end; justify-self: end; text-align: right; }
.claim { font-weight: 600; }
.price > * { margin: 0 !important; }
.price-amount { font-size: var(--step-head); white-space: nowrap; text-transform: none; } /* keeps "Kč" correct */
.price-unit { font-size: var(--step-lead); line-height: 1.35; margin-top: 14px !important; }

/* ---------- The shop: photographs to come ---------- */
.shop {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m) 0;
  align-items: start;
}
.shop > * { margin: 0 !important; }
/* A photo placeholder. Add an Image block inside it and the photo fills the box. */
.ph {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
}
.ph p { font-size: var(--step-small); line-height: 1.4; max-width: 26ch; position: relative; }
.ph .wp-block-image { position: absolute; inset: 0; margin: 0; }
.ph .wp-block-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.95); }
.ph-large .wp-block-image img { object-position: 68% 50%; }
.ph-row .ph:nth-child(1) .wp-block-image img { object-position: 62% 50%; }
.ph-large { grid-column: 1 / 6; }
.ph-large p { font-size: var(--step-body); }
.shop-side { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 32px; }
.shop-side > * { margin: 0 !important; }
.shop-side h2 { font-size: var(--step-head); }
.body { max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; }
.ph-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 24px !important; }
.ph-row > * { margin: 0 !important; }

/* ---------- Hours ---------- */
.hours {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m) 0;
  align-items: start;
}
.hours > * { margin: 0 !important; }
.hours-text { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.hours-text > * { grid-column: 7 / 13; }
.hours-text > h2 { grid-column: 1 / 7; grid-row: 1 / span 4; }
.hours-text > .days { margin-top: 0 !important; }
.hours h2 { font-size: var(--step-head); }
.hours-status { font-size: var(--step-lead); margin-top: 32px !important; }
.days { margin: 40px 0 0 !important; padding: 0; list-style: none; font-variant-numeric: tabular-nums; max-width: 30rem; }
.days li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.days li.today { font-weight: 700; }
.days .v { color: var(--muted); }
.note { margin-top: 32px !important; max-width: 40ch; }
.wp-element-caption, figcaption { font-size: var(--step-small); color: var(--muted); margin: 12px 0 0; text-align: left; }

/* ---------- Find us: the address set as display rows, the square beside it ---------- */
.find {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m) var(--section);
  align-items: start;
}
.find > * { margin: 0 !important; }
.find-title { grid-column: 1 / 7; grid-row: 1 / span 3; }
.rows, .find-go { grid-column: 7 / 13; }
.find .find-title { color: var(--muted); font-size: var(--step-head); }
.rows { margin-top: 0 !important; }
.rows p { font-size: var(--step-head); font-weight: 500; padding: 14px 0; }
.rows a { text-decoration: none; }
.rows a:hover { color: var(--muted); }
.rows .is-missing { color: var(--muted); }
.rows .is-missing mark.tbc { background: none; padding: 0; }
.find-go { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px !important; }
.find-go > * { margin: 0 !important; }
.apps a { text-underline-offset: 0.2em; }

/* ---------- FAQ: answers as reading text ---------- */
.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m) var(--section);
}
.faq > * { margin: 0 !important; }
.faq h2 { grid-column: 1 / 13; font-size: var(--step-head); margin-bottom: 56px !important; }
.faq-text { grid-column: 1 / 13; columns: 2; column-gap: 48px; }
.faq-text p { break-inside: avoid; margin: 0 0 24px !important; max-width: 46ch; }
.faq-text strong { font-weight: 600; }

/* ---------- Other pages (privacy notice and the like) ---------- */
.page-head { padding: 96px var(--m) 48px; }
.page-head h1 { font-size: var(--step-head); }
.page-body { padding: 0 var(--m) var(--section); max-width: calc(68ch + 2 * var(--m)); }
.page-body > * + * { margin-top: 1em !important; }
.page-body h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-top: 1.5em !important; }

/* ---------- Footer: the name returns, on signage red ---------- */
.foot {
  background: var(--accent); color: var(--accent-ink);
  padding: 40px var(--m) 40px;
  --tbc: rgba(0, 0, 0, 0.28);
}
.foot > * { margin: 0 !important; }
.foot-name {
  font-size: min(15.5vw, 17rem);
  line-height: 0.8;
  white-space: nowrap;
  margin-left: -0.03em !important;
}
.foot-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  margin-top: 72px !important;
}
.foot-row > * { margin: 0 !important; }
.places { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.5; }
.places > * { margin: 0 !important; }
.company { grid-column: 7 / 13; display: grid; gap: 8px; align-content: start; font-size: var(--step-small); }
.company > * { margin: 0 !important; }
.company-row { display: grid; grid-template-columns: 13em 1fr; gap: 16px; }
.company-row > * { margin: 0 !important; }
.credits { margin-top: 72px !important; font-size: var(--step-small); max-width: 110ch; }

/* ---------- Entrances: parts of each section rise in turn, once (assets/js/front.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wp-block-button__link.wp-element-button, .lang a { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --m: 28px; --section: 136px; }
  .nav { display: none !important; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-text { display: contents; }
  .hero h1 { padding-top: 36px; }
  .facade { order: -1; min-height: 0; height: 44svh; margin: 0 calc(var(--m) * -1) !important; grid-template-columns: 1fr 22%; }
  .facts { padding-top: 32px; margin-top: 0 !important; padding-bottom: 8px; }
  .field-copy { grid-column: 7 / 13; }
  .field-dark .field-copy { grid-column: 1 / 7; }
  .field-phrase { grid-column: 1 / 13; }
  .field-dark .field-phrase { grid-column: 1 / 13; }
  .field-red .field-copy { grid-column: 1 / 7; }
  .field-red .price { grid-column: 7 / 13; }
  .ph-large { grid-column: 1 / 7; }
  .faq-text { grid-column: 1 / 13; columns: 1; }
  .find-title, .rows, .find-go { grid-column: 1 / 13; }
  .find-title { grid-row: auto; margin-bottom: 28px !important; }
  .shop-side { grid-column: 7 / 13; }
  .ph-row { grid-template-columns: 1fr 1fr; }
    .company-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Phone: its own composition ---------- */
@media (max-width: 700px) {
  :root { --m: 16px; --gap: 12px; --section: 112px; --bar: 60px; --step-lead: 1.125rem; --step-head: clamp(2.25rem, 10.2vw, 3rem); --step-display: clamp(2.75rem, 13.5vw, 3.75rem); }
  .bar { gap: 12px; }
  .bar-cta .wp-block-button__link.wp-element-button { padding: 0 14px; }
  .hero h1 { padding-top: 24px; }
  .lead { margin-top: 20px !important; }
  .actions { margin-top: 24px !important; gap: 20px; }
  .actions .wp-block-button:not(.is-style-text) { flex: 1 1 100%; }
  .actions .wp-block-button:not(.is-style-text) .wp-block-button__link { width: 100%; }
  .facts { padding-top: 24px; gap: 6px; }
  .fact { grid-template-columns: 7.5em 1fr; gap: 10px; }
  .facade { height: 42svh; grid-template-columns: 1fr 24%; }
  .facade .facade-photo figcaption { left: 12px; bottom: 12px; right: 12px; }

  .services { margin-top: 0 !important; }
  .field { min-height: 0; row-gap: 88px; padding: 32px var(--m) 36px; }
  .field-copy, .field-dark .field-copy { grid-column: 1 / 12; }
  .field-phrase, .field-dark .field-phrase { grid-column: 1 / 13; justify-self: start; text-align: left; }
  .field-red { grid-template-rows: auto auto auto; row-gap: 40px; }
  .field-red .field-copy { grid-column: 1 / 13; grid-row: 2; }
  .field-red .price { grid-column: 1 / 13; grid-row: 3; justify-self: start; text-align: left; }

  .shop { display: flex; flex-direction: column; gap: 28px; }
  .shop-side { display: contents; }
  .shop-side h2 { order: -2; }
  .shop-side .body { order: -1; }
  .ph-large { width: 100%; }
  .ph-row { margin-top: 0 !important; width: 100%; grid-template-columns: 1fr 1fr; }

  .hours { display: block; }
  .hours-text { display: block; }
  .hours-text > .days { margin-top: 32px !important; }
  .days li { padding: 11px 0; }

  .find { display: flex; flex-direction: column; }
  .rows p { padding: 10px 0; }
  .find-cta, .find-cta .wp-block-button, .find-cta .wp-block-button__link { flex: 1 1 100%; width: 100%; }
  .find-title { margin-bottom: 8px !important; }

  .faq { display: block; }
  .faq h2 { margin-bottom: 32px !important; }
  .faq-text { columns: 1; }

  .foot-name { font-size: 16vw; }
  .foot-row { display: block; margin-top: 40px !important; }
  .company { margin-top: 40px !important; }
  .credits { margin-top: 48px !important; }
}
