/* RMBA - architektonicke studio
   Prevod puvodniho webu (WordPress + Divi) 1:1, rozmery merene na zivem webu.
   Pouze ASCII. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2?v=a63797c1") 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: 200 700;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2?v=a5ec5492") 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 {
  --ink: #000;
  --text: #666;
  --heading: #333;
  --icon: #2a2a2a;
  --muted: #6b6b6b;
  --nav: rgba(0, 0, 0, 0.6);
  --footer-bg: #ededed;
  --head-h: 147px;
  --gutter: 5.5%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-top: var(--head-h);
  background: #fff;
  color: var(--text);
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 200;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
}

.skip:focus {
  top: 10px;
}

.wrap {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

/* cernobile fotky, barva po najeti */
.mono {
  filter: saturate(0);
  transition: filter 0.3s ease;
}

a:hover .mono,
a:focus-visible .mono,
.mono:hover {
  filter: saturate(1);
}

/* ---------- hlavicka ---------- */

.head {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: #fff;
  text-align: center;
}

.head__in {
  position: relative;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

.head__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  transition: height 0.4s ease-in-out;
}

.head__logo img {
  position: relative;
  left: 2px;
  width: auto;
  height: 66px;
  transition: height 0.4s ease-in-out;
}

/* po odscrollovani logo zmizi, v liste zustane jen menu (jen desktop, mobil ma vlastni hlavicku) */
@media (min-width: 981px) {
  .head__logo {
    overflow: hidden;
    transition: height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
  }

  .head.is-scrolled .head__logo {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.4s;
  }
}

.nav {
  padding-top: 4px;
  transition: padding-top 0.4s ease-in-out;
}

.head.is-scrolled .nav {
  padding-top: 20px;
}

.nav ul {
  display: flex;
  justify-content: center;
  column-gap: 3.7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  padding-right: 22px;
}

.nav li:last-child {
  padding-right: 0;
}

.nav a {
  display: block;
  padding-bottom: 20px;
  color: var(--nav);
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 3px;
  transition: color 0.4s ease-in-out;
}

.nav a:hover {
  color: var(--muted);
}

.nav a[aria-current] {
  color: var(--ink);
}

/* Tabler ikony maji kolem kresby okraj 2/24, proto 18px misto puvodnich 14px */
.nav svg {
  display: block;
  width: auto;
  height: 18px;
  margin: -2px 3px -2px 0;
  fill: currentColor;
}

.nav__toggle {
  display: none;
}

/* ---------- paticka ---------- */

.foot {
  flex-shrink: 0;
  background: var(--footer-bg);
}

.foot__in {
  padding: 7px 0;
}

.foot a {
  filter: saturate(0);
}

/* ---------- uvod ---------- */

.intro {
  padding: 58px 0 0;
}

.intro__in {
  width: 80%;
  max-width: 1150px;
  margin: 0 auto;
}

.intro h1 {
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
}

.tiles {
  padding: 38px 0 81px;
}

.tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gutter);
  row-gap: 54px;
  align-items: start;
}

.tiles__grid a {
  display: block;
}

/* vsechny dlazdice stejny pomer jako karty projektu (dve fotky jsou 4:3);
   orez jen zespodu, aby zustal cely odznak Czech Interior Award v hornim rohu */
.tiles__grid img {
  width: 100%;
  aspect-ratio: 400 / 284;
  object-fit: cover;
  object-position: center top;
}

/* ---------- projekty ---------- */

.projects {
  padding: 29px 0 135px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gutter);
  row-gap: 54px;
}

.project-card {
  display: block;
  margin-bottom: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 400 / 284;
  object-fit: cover;
}

.project-card h2 {
  margin-top: 10px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

/* ---------- detail projektu ---------- */

.gallery {
  padding: 29px 0 111px;
}

/* rady po dvou (lichy konec trojice); flex-grow = pomer stran fotky nastavi app.js,
   takze fotky v rade maji stejnou vysku a nevznikaji mezery; bez JS stejne siroke sloupce */
.gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 0 0 30px;
}

.gallery__row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.gallery__row a {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.gallery__row--single a {
  flex: 0 1 calc(50% - 15px);
}

.gallery__grid img {
  width: 100%;
}

.gallery__video {
  margin: 30px 0 0 30px;
}

.gallery__video video {
  width: 100%;
}

/* ---------- press ---------- */

.press-title {
  padding: 17px 0 27px;
}

.press-title h2 {
  padding-bottom: 10px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.press-awards {
  padding: 14px 0 24px;
}

.press-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gutter);
  padding: 27px 8px 16px;
}

.press-row--full {
  grid-template-columns: 1fr;
}

.press-item img,
.press-item video {
  width: 100%;
}

.press-item__text {
  display: block;
  width: 90%;
  padding: 18px 0 9px;
}

.press-item__text h3,
.press-item__text p {
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 200;
  line-height: 1.3;
}

.video {
  position: relative;
  background: #000;
}

.video video {
  aspect-ratio: 16 / 9;
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.video__play svg {
  width: 96px;
  height: 96px;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  transition: opacity 0.3s ease;
}

.video__play:hover svg {
  opacity: 0.7;
}

.video__play[hidden] {
  display: none;
}

.video__play--ct {
  background-image: image-set(url("img/press/video-ct-640.webp?v=1e81be0d") 1x, url("img/press/video-ct-1280.webp?v=f21e5d6e") 2x);
}

.press-divider {
  padding: 41px 0 49px;
}

.press-divider hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

/* rejstrik clanku: vlevo zdroj (domena z odkazu), vpravo titulek, mezi radky linka;
   puvodni web mel odrazky a pul polozek "domena | titulek", pul jen titulek */
.press-links ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid #dedede;
  list-style: none;
}

.press-links li {
  border-bottom: 1px solid #dedede;
}

.press-links a {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 32px;
  align-items: baseline;
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.press-links__src {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.press-links__title {
  transition: color 0.3s ease-in-out;
}

.press-links a:hover .press-links__title,
.press-links a:focus-visible .press-links__title {
  color: var(--ink);
}

.press-videos {
  padding: 36px 0 65px;
}

.press-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gutter);
  padding: 27px 0;
}

.yt {
  position: relative;
  display: block;
  background: #000;
}

.yt img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.yt svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
}

.yt__bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.yt:hover .yt__bg {
  fill: #f00;
  fill-opacity: 1;
}

.yt__arrow {
  fill: #fff;
}

/* ---------- kontakt ---------- */

.contact {
  padding: 73px 0 117px;
}

.contact__in {
  display: grid;
  grid-template-columns: 36.7% 57.8%;
  column-gap: var(--gutter);
  align-items: start;
  width: calc(100% - 140px);
  max-width: 1300px;
  margin: 0 auto;
}

.contact__name {
  margin-bottom: 35.75px;
  padding-bottom: 10px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.blurb {
  display: grid;
  grid-template-columns: 32px 1fr;
  margin-bottom: 35.75px;
  font-size: 16px;
  line-height: 1.8;
}

.blurb:last-child {
  margin-bottom: 0;
}

.blurb svg {
  width: 20px;
  height: 20px;
  fill: var(--icon);
}

.blurb__body {
  padding-left: 15px;
}

.blurb h3 {
  padding-bottom: 10px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.contact__photo {
  display: block;
}

.contact__photo img {
  width: 100%;
}

/* ---------- 404 ---------- */

.notfound {
  padding: 58px 0 81px;
  text-align: center;
}

.notfound h1 {
  padding-bottom: 10px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
}

/* tap target 44 px (02-AUDIT MUST i), zaporny margin drzi rozvrzeni */
.notfound a {
  display: inline-block;
  padding: 13px 8px;
  margin: -13px -8px;
  text-decoration: underline;
}

/* ---------- lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 40px 8px;
  border: 0;
  background: rgba(11, 11, 11, 0.8);
  color: #f3f3f3;
  overflow: hidden;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.lightbox__count {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 6px;
  color: #ccc;
  font-size: 12px;
  line-height: 18px;
}

.lightbox button {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  opacity: 1;
}

.lightbox button:focus-visible {
  outline-color: #fff;
}

.lightbox__close {
  top: 0;
  right: 8px;
  width: 44px;
  height: 44px;
  font-size: 34px;
  font-weight: 300;
  line-height: 44px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  width: 70px;
  height: 110px;
  margin-top: -55px;
}

.lightbox__prev {
  left: 0;
}

.lightbox__next {
  right: 0;
}

.lightbox__prev svg,
.lightbox__next svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__count {
  display: none;
}

/* ---------- tablet a mobil (stejny zlom jako puvodni web) ---------- */

@media (max-width: 980px) {
  :root {
    --head-h: 58px;
  }

  .wrap,
  .intro__in {
    width: 95%;
  }

  .wrap--narrow {
    width: 80%;
  }

  .head {
    position: absolute;
    height: 60px;
    text-align: left;
  }

  .head__in {
    width: 95%;
  }

  .head__logo,
  .head.is-scrolled .head__logo {
    justify-content: flex-start;
    height: 60px;
    padding-left: 14px;
  }

  .head__logo img,
  .head.is-scrolled .head__logo img {
    height: 48px;
  }

  /* tap target 44x44 (02-AUDIT MUST i), stred tlacitka stejny jako puvodni 40x34 na 13/5 px */
  .nav__toggle {
    position: absolute;
    top: 8px;
    right: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav__bars,
  .nav__bars::before,
  .nav__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--muted);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav__bars {
    position: relative;
  }

  .nav__bars::before,
  .nav__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav__bars::before {
    top: -6px;
  }

  .nav__bars::after {
    top: 6px;
  }

  .nav__toggle[aria-expanded="true"] .nav__bars {
    background: transparent;
  }

  .nav__toggle[aria-expanded="true"] .nav__bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav,
  .head.is-scrolled .nav {
    position: absolute;
    top: 60px;
    left: 10%;
    display: none;
    width: 80%;
    padding: 0;
    background: #fff;
    box-shadow: 2px 10px 35px rgba(0, 0, 0, 0.1);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    display: block;
  }

  .nav li {
    padding: 0;
  }

  .nav a {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    color: var(--muted);
    font-size: 15px;
    line-height: 15px;
    letter-spacing: 0;
  }

  .nav svg {
    height: 19px;
    margin-right: 0;
  }

  .head__logo img {
    left: 0;
  }

  .tiles {
    padding: 40px 0 80px;
  }

  .tiles__grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .projects {
    padding: 32px 0 44px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .project-card h2 {
    padding-bottom: 10px;
  }

  .gallery {
    padding: 32px 0 110px;
  }

  .gallery__row {
    flex-direction: column;
  }

  .gallery__row a,
  .gallery__row--single a {
    flex: none;
    width: 100%;
  }

  .press-title {
    padding-bottom: 30px;
  }

  .press-awards .wrap,
  .press-awards .wrap--rows {
    width: 100%;
  }

  .press-awards .press-title {
    width: 95%;
    margin: 0 auto;
  }

  .press-row {
    grid-template-columns: 1fr;
    row-gap: 30px;
    padding-top: 30px;
  }

  .press-videos__grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
    padding: 30px 0;
  }

  .press-links a {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .contact__in {
    grid-template-columns: 1fr;
    row-gap: 30px;
    width: 80%;
  }

  .contact__name,
  .blurb {
    margin-bottom: 30px;
  }

  /* tap target min. 44 px: radek 28.8 px + 2x 8 px */
  .blurb__body a {
    display: inline-block;
    padding: 8px 0;
  }

  /* odkaz v nadpisu press: na 768-980 px jednoradkovy (22 px) -> 44 px, rozvrzeni beze zmeny */
  .press-item__text a {
    display: inline-block;
    padding: 11px 0;
    margin: -11px 0;
  }

  .foot__in {
    padding: 7px 0;
  }

  /* tap target 44 px, zaporny margin drzi vysku paticky jako v navrhu */
  .foot a {
    display: inline-block;
    padding: 13px 0;
    margin: -13px 0;
  }
}

@media (max-width: 767px) {
  .intro h1 {
    font-size: 17px;
  }
}

/* dotyk nad 980 px (tablet na sirku): tap targety 44 px, zaporne marginy drzi desktop 1:1;
   mys (any-pointer: fine) se toho netyka */
@media (min-width: 981px) and (any-pointer: coarse) {
  .nav a {
    padding-top: 10px;
    margin-top: -10px;
  }

  .nav li:nth-last-child(-n+2) a {
    padding-right: 12px;
    padding-left: 12px;
    margin-right: -12px;
    margin-left: -12px;
  }

  .blurb__body a {
    display: inline-block;
    padding: 8px 0;
    margin: -8px 0;
  }

  .foot a,
  .press-item__text a {
    display: inline-block;
    padding: 13px 0;
    margin: -13px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
